discourse/app
Martin Brennan cfe4ff8d56
FIX: Make sure html_raw is hoisted in custom markdown cook function (#16050)
When returning the customRenderFn from within buildCustomMarkdownCookFunction
for custom markdown engines (such as the one used by the [chat] transcripts)
we were not hoisting/unhoisting the `html_raw` tokens created by the
transcript, which meant that opts.discourse.hoisted could end up in
a state where it was null, and which caused errors and general unpleasantness.

Instead, we can just call the `cook` function that is already exported
from discourse-markdown-it, that takes care of what we did previously
plus the hoisting.

There is a companion chat commit that adds tests for this, there are
no custom markdown engine usages in core to test with.
2022-02-28 07:54:55 +10:00
..
assets FIX: Make sure html_raw is hoisted in custom markdown cook function (#16050) 2022-02-28 07:54:55 +10:00
controllers FEATURE: upload an avatar option for uploading avatars with selectable avatars (#15878) 2022-02-24 12:57:39 -08:00
helpers FIX: Update application_helper logic now that Ember CLI is default (#15935) 2022-02-14 13:48:18 +00:00
jobs DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
mailers FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
models FEATURE: upload an avatar option for uploading avatars with selectable avatars (#15878) 2022-02-24 12:57:39 -08:00
serializers FEATURE: mute subcategory when parent category is muted (#15966) 2022-02-17 00:42:02 +01:00
services DEV: Add chat_quoted notification type (#15968) 2022-02-16 15:22:08 +10:00
views PERF: Update ember-auto-import and webpack (#15919) 2022-02-14 11:21:39 +00:00