Martin Brennan 65481858c2
FEATURE: Use upload:// short URL for videos and audio in composer (#8760)
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.
2020-01-23 09:41:39 +10:00
..
2020-01-15 11:27:12 +01:00
2019-10-21 12:08:20 +01:00
2020-01-15 11:21:58 +01:00
2014-03-11 03:18:57 -04:00
2019-05-22 17:39:44 +03:00
2020-01-21 17:05:30 -05:00
2019-10-21 12:08:20 +01:00