diff options
Diffstat (limited to 'examples/server/public/index.html')
-rw-r--r-- | examples/server/public/index.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/server/public/index.html b/examples/server/public/index.html index f5ed2d4..ea93de4 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -390,6 +390,9 @@ // poor mans markdown replacement const Markdownish = (params) => { const md = params.text + .replace(/&/g, '&') + .replace(/</g, '<') + .replace(/>/g, '>') .replace(/^#{1,6} (.*)$/gim, '<h3>$1</h3>') .replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>') .replace(/__(.*?)__/g, '<strong>$1</strong>') |