mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 08:16:14 +08:00
65481858c2
For consistency this PR introduces using custom markdown and short upload:// URLs for video and audio uploads, rather than just treating them as links and relying on the oneboxer. The markdown syntax for videos is ![file text|video](upload://123456.mp4) and for audio it is ![file text|audio](upload://123456.mp3). This is achieved in discourse-markdown-it by modifying the rules for images in mardown-it via md.renderer.rules.image. We return HTML instead of the token when we encounter audio or video after | and the preview renders that HTML. Also when uploading an audio or video file we insert the relevant markdown into the composer. |
||
---|---|---|
.. | ||
context | ||
emoji | ||
engines | ||
censored-words.js.es6 | ||
emoji.js.es6 | ||
guid.js.es6 | ||
inline-oneboxer.js.es6 | ||
oneboxer-cache.js.es6 | ||
oneboxer.js.es6 | ||
pretty-text.js.es6 | ||
sanitizer.js.es6 | ||
upload-short-url.js.es6 | ||
white-lister.js.es6 | ||
xss.js.es6 |