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  and for audio it is . 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. |
||
|---|---|---|
| .. | ||
| bbcode-block.js.es6 | ||
| bbcode-inline.js.es6 | ||
| category-hashtag.js.es6 | ||
| censored.js.es6 | ||
| code.js.es6 | ||
| d-wrap.js.es6 | ||
| emoji.js.es6 | ||
| helpers.js.es6 | ||
| html-img.js.es6 | ||
| inject-line-number.js.es6 | ||
| mentions.js.es6 | ||
| newline.js.es6 | ||
| onebox.js.es6 | ||
| paragraph.js.es6 | ||
| quotes.js.es6 | ||
| resize-controls.js.es6 | ||
| table.js.es6 | ||
| text-post-process.js.es6 | ||
| upload-protocol.js.es6 | ||