Fix type capture for raw html parser

This commit is contained in:
Alexander Nozik 2024-10-14 14:49:00 +03:00
parent 440f6e3b83
commit c3d9e4a4ef
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@
{
"type": "data",
"name": "body"
},
{
"type": "data",
"name": "footer"
}
]
}

View File

@ -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 {