Skip to content

synfonaut/medium-editor-markdown

 
 

Repository files navigation

medium-editor-markdown

medium-editor-markdown

A Medium Editor extension to add markdown support.

Installation

$ npm i medium-editor-markdown

Documentation

MeMarkdown(options, callback)

Creates a new instance of MeMarkdown.

Params

  • Object options: An object containing the following fields:
  • events (Array): An array with the events when the markdown code will be generated (default: ["input", "change"]).
  • subscribeToMeEditableInput (Boolean): If this is true we will respond to the medium editor's custom "editableInput" event
  • callback (Function): The callback function. If the second argument is a function, then it has greater priority.
  • toTurndownOptions (Object): Options to pass to the markdown converter code.
  • ignoreBuiltinConverters (Boolean): If true, the default converters passed to toMarkdown will be ignored.
  • Function callback: The callback function that is called with the markdown code (first argument).

How to contribute

Have an idea? Found a bug? See how to contribute.

License

See the LICENSE file.

About

📝 A Medium Editor extension to add markdown support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.3%
  • Other 1.7%