Skip to content

Commit 9faaf4d

Browse files
author
minjk-bl
committed
markdown > insert image using path
1 parent ca58cfc commit 9faaf4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/vpCommon.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ define([
298298
iopub: {
299299
output: function(msg) {
300300
// msg.content.data['text/plain']
301-
console.log(msg);
302301
resolve(msg.content.data);
303302
}
304303
}

src/markdown/markdown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ define([
403403

404404
MathJax.Hub.Queue(["Typeset", MathJax.Hub, that.wrapSelector(vpCommon.formatString("{0}{1}", vpConst.VP_ID_PREFIX, "markdownPreview"))]);
405405

406-
// 변환안 된 이미지 있으면 경로로 설정하기 FIXME:
406+
// // 변환안 된 이미지 있으면 경로로 설정하기 FIXME:
407407
html = html.replaceAll('vpImportImage:', '');
408408

409409
textBlock.writeCode(html);
@@ -431,7 +431,8 @@ define([
431431
.then(data => {
432432
var imgResult = data["image/png"];
433433

434-
textarea.value = vpCommon.formatString("{0}![{1}]({2}:{3}){4}", preText, file, vpConst.VP_MARKDOWN_TOOLBAR_IMAGE_INDICATOR, file, postText);
434+
// textarea.value = vpCommon.formatString("{0}![{1}]({2}:{3}){4}", preText, file, vpConst.VP_MARKDOWN_TOOLBAR_IMAGE_INDICATOR, file, postText);
435+
textarea.value = vpCommon.formatString("{0}![{1}]({2}){3}", preText, file, file, postText);
435436

436437
// 파일 ATTACH ID 생성
437438
var pathSplit = file.split('.').join('/').split('/');

0 commit comments

Comments
 (0)