task-lists.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Github Flavored Markdown task lists - Editor.md examples</title>
  6. <link rel="stylesheet" href="css/style.css" />
  7. <link rel="stylesheet" href="../css/editormd.css" />
  8. <link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
  9. </head>
  10. <body>
  11. <div id="layout">
  12. <header>
  13. <h1>Github Flavored Markdown task lists</h1>
  14. </header>
  15. <div id="test-editormd">
  16. <textarea style="display:none;">### Setting
  17. {
  18. taskList : true
  19. }
  20. ### Examples
  21. - [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported;
  22. - [x] list syntax required (any unordered or ordered list supported);
  23. - [x] this is a complete item;
  24. - [ ] this is an incomplete item [test link](#);
  25. - [ ] this is an incomplete item;
  26. - [ ] this is an incomplete item [test link](#);
  27. - [ ] this is an incomplete item [test link](#);
  28. - [x] list syntax required (any unordered or ordered list supported);
  29. - [x] this is a complete item;
  30. - [ ] this is an incomplete item [test link](#);
  31. - [ ] this is an incomplete item;
  32. - [ ] this is an incomplete item [test link](#);
  33. - [x] list syntax required (any unordered or ordered list supported);
  34. - [x] this is a complete item;
  35. - [ ] this is an incomplete item [test link](#);
  36. - [ ] this is an incomplete item;
  37. - [ ] this is an incomplete item [test link](#);
  38. - [ ] this is an incomplete item [test link](#);
  39. > Github Flavored Markdown task lists
  40. </textarea>
  41. </div>
  42. </div>
  43. <script src="js/jquery.min.js"></script>
  44. <script src="../editormd.js"></script>
  45. <script type="text/javascript">
  46. var testEditor;
  47. $(function() {
  48. testEditor = editormd("test-editormd", {
  49. width : "90%",
  50. height : 720,
  51. taskList : true,
  52. path : '../lib/',
  53. htmlDebode : true,
  54. onload : function() {
  55. }
  56. });
  57. });
  58. </script>
  59. </body>
  60. </html>