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-test.js.es6 | ||
| category-badge-test.js.es6 | ||
| click-track-edit-history-test.js.es6 | ||
| click-track-profile-page-test.js.es6 | ||
| click-track-test.js.es6 | ||
| computed-test.js.es6 | ||
| discourse-test.js.es6 | ||
| emoji-store-test.js.es6 | ||
| emoji-test.js.es6 | ||
| formatter-test.js.es6 | ||
| highlight-text-test.js.es6 | ||
| i18n-test.js.es6 | ||
| icon-library-test.js.es6 | ||
| key-value-store-test.js.es6 | ||
| load-script-test.js.es6 | ||
| oneboxer-test.js.es6 | ||
| preload-store-test.js.es6 | ||
| pretty-text-test.js.es6 | ||
| sanitizer-test.js.es6 | ||
| screen-track-test.js.es6 | ||
| search-test.js.es6 | ||
| sharing-test.js.es6 | ||
| text-direction-test.js.es6 | ||
| to-markdown-test.js.es6 | ||
| tooltip-test.js.es6 | ||
| upload-short-url-test.js.es6 | ||
| uploads-test.js.es6 | ||
| url-test.js.es6 | ||
| user-search-test.js.es6 | ||
| utilities-test.js.es6 | ||
| white-lister-test.js.es6 | ||