Mercurial Hosting > chat
comparison src/chat.js @ 120:d7e143175d9f
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 05 Dec 2025 09:05:55 -0700 |
| parents | 04933d5ba05a |
| children | b96d598aa7d1 |
comparison
equal
deleted
inserted
replaced
| 119:ec1a61bf5738 | 120:d7e143175d9f |
|---|---|
| 253 | 253 |
| 254 let converter = window.markdownit({linkify:true}); | 254 let converter = window.markdownit({linkify:true}); |
| 255 let filebinUrlRegex = />https:\/\/filebin.net\/[0-9a-f]+\/([^<]+)</g; | 255 let filebinUrlRegex = />https:\/\/filebin.net\/[0-9a-f]+\/([^<]+)</g; |
| 256 | 256 |
| 257 function handleMarkdown(text) { | 257 function handleMarkdown(text) { |
| 258 text = converter.render(text); | 258 text = converter.renderInline(text); |
| 259 text = text.replace( filebinUrlRegex, '>$1<' ); | 259 text = text.replace( filebinUrlRegex, '>$1<' ); |
| 260 return text; | 260 return text; |
| 261 } | 261 } |
| 262 | 262 |
| 263 let currentPulldown = null; | 263 let currentPulldown = null; |
