diff --git a/app/templates_src/doc.lisp b/app/templates_src/doc.lisp index 7c1f541..bf4df99 100644 --- a/app/templates_src/doc.lisp +++ b/app/templates_src/doc.lisp @@ -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 %}") diff --git a/src/markdown.rs b/src/markdown.rs index d4ba1aa..a5ac837 100644 --- a/src/markdown.rs +++ b/src/markdown.rs @@ -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 == "") { + if line.starts_with("```") { in_pre_block = !in_pre_block; pre_idx += 1;