• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

IonicaBizau/medium-editor-markdown: A Medium Editor extension to add markdown su ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

IonicaBizau/medium-editor-markdown

开源软件地址(OpenSource Url):

https://github.com/IonicaBizau/medium-editor-markdown

开源编程语言(OpenSource Language):

JavaScript 98.3%

开源软件介绍(OpenSource Introduction):

medium-editor-markdown

Medium Editor Markdown

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads Get help on Codementor

Buy Me A Coffee

A Medium Editor extension to add markdown support.

Click here to see the Medium Editor project.

Usage

The available scripts are:

  • me-markdown.no-deps.js
  • me-markdown.no-deps.min.js
  • me-markdown.standalone.js
  • me-markdown.standalone.min.js

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.

Medium Editor Markdown

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.

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
plibither8/markdown-new-tab: 发布时间:2022-08-18
下一篇:
theunrepentantgeek/Markdown.XAML: Markdown for WPF - render Markdown to a FlowDo ...发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap