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.

Home Page:https://simplemde.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

list not shown

AlphaBeta1906 opened this issue · comments

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

Same issue on my side !

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