1 parent 4644e91 commit 6e71522Copy full SHA for 6e71522
1 file changed
utils/editors/markdown-editor/html/output-md/v2.0/output-md-v2.0.html
@@ -386,10 +386,24 @@
386
}//md
387
388
389
+ display.html = function(html){
390
+ debug('display.html');
391
+ editor.set(html);
392
+
393
+ show('editor');
394
395
+ }//html
396
397
398
display.npm = async function(txt){
399
debug('display.npm');
400
var html = await github_markdown(txt);
401
402
+ if(cur.mode=='html'){
403
+ display.html(html);
404
+ return;
405
+ }
406
407
npm_readme.innerHTML = html;
408
409
$(shadow,'#stylesheet').textContent = css.npm;
@@ -409,15 +423,6 @@
423
}//get
410
424
411
425
412
- display.html = function(html){
413
- debug('display.html');
414
- editor.set(html);
415
-
416
- show('editor');
417
418
- }//html
419
420
421
426
function show(id){
422
427
428
switch(id){
0 commit comments