Support » Plugin: WP-Markdown » How to add a custom button to WP-Markdown?

  • First of all, awesome plugin, pretty much flawless, great job.

    I am using WP-Markdown on my notes blog, and have the need to add a custom button that wraps selected text in <kbd> and </kbd> tags.

    While I do not know JavaScript or PHP, I should be able to do it myself if you can provide me some clear pointers.

    EDIT: I already tried to follow the code in ‘Markdown.Editor.js’ to no avail. 🙁 Well, it really looks like some complex JavaScript code. If you can show me a code block in the file that I should follow (to duplicate it and create my own button), it would be great!

    Hope I can get some help here. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stephen Harris


    Hi Aahan, sorry for the delayed response. I haven’t been able to give this plug-in my full attention recently. The javascript that handles the toolbar is handled by the JS plug-in, [PageDown]( But I like the idea of adding custom buttons, so I shall certainly look into it!

    Thanks Stephen, that would be awesome! 🙂

    This would be great. My only gripe with WP Markdown is its basic code highlighter; our users are accustomed to more advanced features including Java-specific color coding, styled patch formatting and so forth. This can only be achieved with plugins like WP SyntaxHighlighter Evolved, which we’d like to add a custom button for.

    I replace default WP editor by this plugin. *Favorited*


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add a custom button to WP-Markdown?’ is closed to new replies.