Skip to content

Commit 6e71522

Browse files
save file
1 parent 4644e91 commit 6e71522

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

utils/editors/markdown-editor/html/output-md/v2.0/output-md-v2.0.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,24 @@
386386
}//md
387387

388388

389+
display.html = function(html){
390+
debug('display.html');
391+
editor.set(html);
392+
393+
show('editor');
394+
395+
}//html
396+
397+
389398
display.npm = async function(txt){
390399
debug('display.npm');
391400
var html = await github_markdown(txt);
392401

402+
if(cur.mode=='html'){
403+
display.html(html);
404+
return;
405+
}
406+
393407
npm_readme.innerHTML = html;
394408

395409
$(shadow,'#stylesheet').textContent = css.npm;
@@ -409,15 +423,6 @@
409423
}//get
410424

411425

412-
display.html = function(html){
413-
debug('display.html');
414-
editor.set(html);
415-
416-
show('editor');
417-
418-
}//html
419-
420-
421426
function show(id){
422427

423428
switch(id){

0 commit comments

Comments
 (0)