Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9faaf4d

Browse files
author
minjk-bl
committed
markdown > insert image using path
1 parentca58cfc commit9faaf4d

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
varimgResult=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
varpathSplit=file.split('.').join('/').split('/');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp