A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/medium-editor-markdown below:

medium-editor-markdown - npm

Medium Editor Markdown

A Medium Editor extension to add markdown support.

Click here to see the Medium Editor project.

Usage

The available scripts are:

The *.standalone.* scripts contain all the dependencies included there.

The *.no-deps.* scripts contain only the extension code. You will have to include manually turndown.js on the page, before including the markdown extension.

The *.min.* scripts are minified.

Demo

Click here for a live demo.

Example

<div class="editor"></div>

<pre class="markdown"></pre>

<script src="path/to/medium-editor.js"></script>

<script src="path/to/me-markdown.standalone.min.js"></script>

<script>

    (function () {

        var markDownEl = document.querySelector(".markdown");

        new MediumEditor(document.querySelector(".editor"), {

            extensions: {

                markdown: new MeMarkdown(function (md) {

                    markDownEl.textContent = md;

                })

            }

        });

    })();

</script> 

Building

To rebuild the dist files, run ./build.

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.

  2. For bug reports and feature requests, open issues. 🐛

  3. For direct and quick help, you can use Codementor. 🚀

📝 Documentation MeMarkdown(options, callback)

Creates a new instance of MeMarkdown.

Params 😋 How to contribute

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

💖 Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

Thanks! ❤️

🍰 Thanks 📜 License

MIT © Ionică Bizău


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4