Treat <head> as block-level HTML tag. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/2a009eb
This commit is contained in:
parent
4fe196d324
commit
7e6639da75
@ -399,6 +399,9 @@ HtmlBlockOpenScript = '<' Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* '>'
|
||||
HtmlBlockCloseScript = '<' Spnl '/' ("script" | "SCRIPT") Spnl '>'
|
||||
HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript
|
||||
|
||||
HtmlBlockOpenHead = '<' Spnl ("head" | "HEAD") Spnl HtmlAttribute* '>'
|
||||
HtmlBlockCloseHead = '<' Spnl '/' ("head" | "HEAD") Spnl '>'
|
||||
HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead
|
||||
|
||||
HtmlBlockInTags = HtmlBlockAddress
|
||||
| HtmlBlockBlockquote
|
||||
@ -433,6 +436,7 @@ HtmlBlockInTags = HtmlBlockAddress
|
||||
| HtmlBlockThead
|
||||
| HtmlBlockTr
|
||||
| HtmlBlockScript
|
||||
| HtmlBlockHead
|
||||
|
||||
HtmlBlock = &'<' < ( HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing ) >
|
||||
BlankLine+
|
||||
|
Loading…
Reference in New Issue
Block a user