mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 12:33:35 +00:00
Fix finishView mermaid might select and replace whole markdown-body issue
This commit is contained in:
parent
e311a1f620
commit
843f025cb5
1 changed files with 2 additions and 2 deletions
|
@ -325,11 +325,11 @@ function finishView(view) {
|
||||||
});
|
});
|
||||||
|
|
||||||
//mermaid
|
//mermaid
|
||||||
var mermaids = view.find(".mermaid.raw").removeClass("raw");
|
var mermaids = view.find("div.mermaid.raw").removeClass("raw");
|
||||||
mermaids.each(function (key, value) {
|
mermaids.each(function (key, value) {
|
||||||
try {
|
try {
|
||||||
var $value = $(value);
|
var $value = $(value);
|
||||||
var $ele = $(value).parent().parent();
|
var $ele = $(value).closest('pre');
|
||||||
|
|
||||||
var mermaidError = null;
|
var mermaidError = null;
|
||||||
mermaid.parseError = function (err, hash) {
|
mermaid.parseError = function (err, hash) {
|
||||||
|
|
Loading…
Reference in a new issue