mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: add table support
This commit is contained in:
parent
bf592c0ee7
commit
e9f55adb3a
3 changed files with 24 additions and 1 deletions
|
@ -164,7 +164,8 @@ export function cook(raw, opts) {
|
|||
|
||||
opts.discourse.hoisted = hoisted;
|
||||
|
||||
let cooked = opts.discourse.sanitizer(opts.engine.render(raw), whiteLister).trim();
|
||||
const rendered = opts.engine.render(raw);
|
||||
let cooked = opts.discourse.sanitizer(rendered, whiteLister).trim();
|
||||
|
||||
const keys = Object.keys(hoisted);
|
||||
if (keys.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue