fix: style element parsing
This commit is contained in:
parent
de720d301d
commit
a6a289c594
2 changed files with 5 additions and 1 deletions
|
@ -6,4 +6,8 @@
|
|||
(div
|
||||
("class" "card container")
|
||||
(p (text "{{ text|markdown|safe }}")))
|
||||
|
||||
(link ("rel" "stylesheet") ("href" "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css"))
|
||||
(script ("src" "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"))
|
||||
(script (text "hljs.highlightAll();"))
|
||||
(text "{% endblock %}")
|
||||
|
|
|
@ -639,7 +639,7 @@ macro_rules! parser_ignores_pre {
|
|||
let mut pre_idx = 0;
|
||||
|
||||
for line in $input.split("\n") {
|
||||
if line.starts_with("```") | (line == "<style>") | (line == "</style>") {
|
||||
if line.starts_with("```") {
|
||||
in_pre_block = !in_pre_block;
|
||||
|
||||
pre_idx += 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue