Skip to content

Commit

Permalink
fix: Style tag must be a block element
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed May 8, 2024
1 parent 75f61d0 commit b6a4dd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lunamark/reader/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ parsers.block_keyword =
parsers.keyword_exact("noscript") + parsers.keyword_exact("table") +
parsers.keyword_exact("tbody") + parsers.keyword_exact("tfoot") +
parsers.keyword_exact("thead") + parsers.keyword_exact("th") +
parsers.keyword_exact("td") + parsers.keyword_exact("tr")
parsers.keyword_exact("td") + parsers.keyword_exact("tr") +
parsers.keyword_exact("style")

-- There is no reason to support bad html, so we expect quoted attributes
parsers.htmlattributevalue
Expand Down

0 comments on commit b6a4dd1

Please sign in to comment.