mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Updated to support lang attribute and styles in editor
This commit is contained in:
parent
6967dac0ff
commit
880f6bcf02
4 changed files with 20 additions and 4 deletions
|
@ -5,7 +5,7 @@ md.meta = {};
|
|||
var rendered = md.render(text);
|
||||
// only render again when meta changed
|
||||
if (JSON.stringify(md.meta) != JSON.stringify(lastMeta)) {
|
||||
parseMeta(md, markdown, $('#toc'), $('#toc-affix'));
|
||||
parseMeta(md, null, markdown, $('#toc'), $('#toc-affix'));
|
||||
rendered = md.render(text);
|
||||
}
|
||||
// prevent XSS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue