laobubu / HyperMD

A WYSIWYG Markdown Editor for browsers. Break the Wall between writing and previewing.
MIT License
1.47k stars 137 forks source link

hiding lineNumbers on editor not working #53

Closed jhefreyzz closed 5 years ago

jhefreyzz commented 5 years ago

I read codemirror's manual and hopefully it would be working on hyperMD since it work side by side with codemirror

code snippet from docs with lineNumber option (added)

var cm = HyperMD.fromTextArea(myTextarea, {
  /* ...other editor options */

  mode: {
    name: "hypermd",
    lineNumbers: false,
    hashtag: true, // example. enable hashtag
  }
})

It seems not working.

laobubu commented 5 years ago
var cm = HyperMD.fromTextArea(myTextarea, {
  /* ...other editor options */
  /* put here */
  lineNumbers: false,
  mode: {
    name: "hypermd",
    hashtag: true, // example. enable hashtag
  }
})