editormd_show.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <script src="/static/js/jquery.min.js?t=13"></script>
  2. <script src="/static/editor.md/editormd.js" type="text/javascript"></script>
  3. <script src="/static/editor.md/lib/marked.min.js"></script>
  4. <script src="/static/editor.md/lib/prettify.min.js"></script>
  5. <script src="/static/editor.md/lib/raphael.min.js"></script>
  6. <script src="/static/editor.md/lib/underscore.min.js"></script>
  7. <script src="/static/editor.md/lib/sequence-diagram.min.js"></script>
  8. <script src="/static/editor.md/lib/flowchart.min.js"></script>
  9. <script src="/static/editor.md/lib/jquery.flowchart.min.js"></script>
  10. <script type="text/javascript">
  11. var apiEditor;
  12. $(function() {
  13. apiEditor = editormd.markdownToHTML("markdown-view", {
  14. htmlDecode: "style,script,iframe", // you can filter tags decode
  15. emoji: true,
  16. taskList: true,
  17. tex: true, // 默认不解析
  18. flowChart: true, // 默认不解析
  19. sequenceDiagram: true, // 默认不解析
  20. codeFold: true,
  21. });
  22. // showMarkdownHtml(editorids);
  23. // function showMarkdownHtml(ids){
  24. // $.each(ids,function(k,v){
  25. // // console.log(v);
  26. // testEditor = editormd.markdownToHTML(v, {
  27. // htmlDecode: "style,script,iframe", // you can filter tags decode
  28. // emoji: true,
  29. // taskList: true,
  30. // tex: true, // 默认不解析
  31. // flowChart: true, // 默认不解析
  32. // sequenceDiagram: true, // 默认不解析
  33. // codeFold: true,
  34. // });
  35. // });
  36. // }
  37. });
  38. </script>