Skip to content

Commit

Permalink
escape backslashes too
Browse files Browse the repository at this point in the history
  • Loading branch information
melisgl committed Jul 13, 2023
1 parent bf25c47 commit b13462a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/document/markdown.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
(format stream "*~A*" string)))

(defun markdown-special-inline-char-p (char)
(member char '(#\* #\_ #\` #\[)))
(member char '(#\\ #\* #\_ #\` #\[)))

(defun markdown-special-html-char-p (char)
(member char '(#\< #\&)))
Expand All @@ -74,7 +74,7 @@
(escape-html t) (escape-block t))
"Backslash escape markdown constructs in STRING.
- If ESCPAPE-INLINE, then escape ``*_`[`` characters.
- If ESCPAPE-INLINE, then escape ``*_`[\\`` characters.
- If ESCPAPE-HTML, then escape `<&` characters.
Expand Down

0 comments on commit b13462a

Please sign in to comment.