Skip to content

Commit 68f55ad

Browse files
author
minjk-bl
committed
Fix Markdown bug
1 parent 94f2f60 commit 68f55ad

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

js/board/Block.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ define([
199199
this.focusItem();
200200
}
201201

202+
// Deprecated: show markdown as other DA blocks
202203
// if markdown, set its height to fit-content
203-
if (this.id == 'apps_markdown') {
204-
$(this.wrapSelector()).addClass('vp-block-markdown');
205-
}
204+
// if (this.id == 'apps_markdown') {
205+
// $(this.wrapSelector()).addClass('vp-block-markdown');
206+
// }
206207

207208
// if viewDepthNumber, show it
208209
let viewDepthNumber = this.prop.parent.state.viewDepthNumber;
@@ -304,9 +305,10 @@ define([
304305
if (this._getMenuGroupRootType() == 'logic') {
305306
header = this.task.generateCode();
306307
}
307-
if (this.id == 'apps_markdown') {
308-
header = this.task.getPreview();
309-
}
308+
// Deprecated: show markdown as other blocks
309+
// if (this.id == 'apps_markdown') {
310+
// header = this.task.getPreview();
311+
// }
310312
this.state.header = header;
311313
return header;
312314
}

0 commit comments

Comments
 (0)