sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

list not shown #813

Open AlphaBeta1906 opened 3 years ago

AlphaBeta1906 commented 3 years ago

UIwhy my list not shown ? image

i just click the button for number list and the number was not shown,

here's my editor code:

  <script>
  var simplemde = new SimpleMDE({
  autofocus: true,
  element: document.getElementById("Editor"),
  forceSync: true,
  hideIcons: ["guide", "heading"],
  indentWithTabs: false,
  insertTexts: {
  horizontalRule: ["", "\n\n-----\n\n"],
  image: ["![](http://", ")"],
  link: ["[", "](http://)"],
  table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text     | Text      | Text     |\n\n"],
  },
  promptURLs: true,
    shortcuts: {
  drawTable: "Cmd-Alt-T"
  },
  showIcons: ["code", "table"],
  spellChecker: false,
  status: ["autosave", "lines", "words", "cursor"], // Optional usage
  status: ["autosave", "lines", "words", "cursor", {
  }], // Another optional usage, with a custom status bar item that counts keystrokes
  styleSelectedText: false,
  tabSize: 4,
  codeSyntaxHighlighting:true,
  });
  </script>

Note : it also happened in first use without configure the editor(deafult),list is not showing

obrassard commented 3 years ago

Same issue on my side !

obrassard commented 3 years ago

In fact, the problem was not related to SimpleMDE. Some external CSS rules were resetting the styles of my list elements.