Fix type capture for raw html parser
This commit is contained in:
parent
440f6e3b83
commit
c3d9e4a4ef
@ -4,6 +4,10 @@
|
||||
{
|
||||
"type": "data",
|
||||
"name": "body"
|
||||
},
|
||||
{
|
||||
"type": "data",
|
||||
"name": "footer"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public interface SnarkHtmlReader : SnarkReader<PageFragment>{
|
||||
}
|
||||
|
||||
public object RawHtmlReader : SnarkHtmlReader {
|
||||
override val inputContentTypes: Set<String> = setOf("html")
|
||||
override val inputContentTypes: Set<String> = setOf("text/html", "html")
|
||||
|
||||
override fun readFrom(source: String): PageFragment = PageFragment {
|
||||
div {
|
||||
|
Loading…
Reference in New Issue
Block a user