mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 00:13:44 +08:00
fd4aea7bc5
Due to the order we were parsing markdown, bbcode [url] elements were not handled properly. `[url]https://example.com/path[/url]` was not currectly parsing cause linkify was detecting the url as: `https://example.com/path[/url]` which is legit. To resolve this I swapped url to use a replace rule, and instead re-parsed the internal payload and injected the tokens in. This fix is complex cause we support stuff like `[url][b]test.com[/b][/url]` So we need to parse the content inside url `[b]test.com[/b]` |
||
---|---|---|
.. | ||
anchor.js | ||
bbcode-block.js | ||
bbcode-inline.js | ||
category-hashtag.js | ||
censored.js | ||
code.js | ||
custom-typographer-replacements.js | ||
d-wrap.js | ||
emoji.js | ||
hashtag-autocomplete.js | ||
helpers.js | ||
html-img.js | ||
image-controls.js | ||
mentions.js | ||
newline.js | ||
onebox.js | ||
paragraph.js | ||
quotes.js | ||
table.js | ||
text-post-process.js | ||
upload-protocol.js | ||
watched-words.js |