Skip to content

Commit

Permalink
Add requirement to support escaping the placeholder syntax in certain…
Browse files Browse the repository at this point in the history
… pages
  • Loading branch information
hisaitami committed Jun 8, 2024
1 parent d41e4d5 commit 47464c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tldr.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
(s/replace #"(?m):\n$" ":")
(parse #"(?m)^(- .+)" (ansi-str :green "$1" :reset))
(parse #"(?m)^`(.+)`$" (ansi-str :red " $1" :reset))
(parse #"\{\{(.+?)\}\}" (ansi-str :reset :blue "$1" :red)))))
(parse #"\{\{(.+?)\}\}" (ansi-str :reset :blue "$1" :red))
(s/replace #"\\{|\\}" {"\\{" "{" "\\}" "}"}))))

(defn display
([file]
Expand Down

0 comments on commit 47464c9

Please sign in to comment.