A partial archive of meta.discourse.org as of Tuesday July 18, 2017.

Loading in markdown-it plugins server-side

amclees

On line 100 of the pretty_text.rb file all plugin discourse-markdown JS files are listed to be automatically included in the server-side pretty text.

/discourse-markdown/ is the used regex.

The effect is that if plugins for markdown-it place assets in assets\javascripts\lib\markdown-it they are loaded client-side but not server-side.

If this is not intended, something like /(?:discourse-markdown|markdown-it)/ for the regex should be a fix.

Is this a bug? Should markdown-it plugins be loaded differently from discourse-markdown plugins somehow?