Giter Site home page Giter Site logo

simditor-markdown's Introduction

simditor-markdown

Simditor 的官方扩展,通过 Markdown 语法快速便捷地输入内容。

如何使用

在 Simditor 的基础上额外引用 simditor-markdown 的脚本。

<script src="/assets/javascripts/simditor-markdown.js"></script>

配置

new Simditor({
	textarea: textareaElement,
	...,
	markdown: true
})

如果需要禁用某些语法,可以在配置里这样写:

new Simditor({
	textarea: textareaElement,
	...,
	markdown: {
		title: false,  // 禁用标题
		hr: false      // 禁用分割线
	}
})

语法

支持以下 Markdown 语法,在 Simditor 中输入后通过空格或回车触发:

标题:##这里是标题

引用:>这是一行引用

代码:```这是一行代码

分割线:*** 或 ---

粗体:**粗体文字**__粗体文字__

斜体:*斜体文字*

无序列表:*第一行内容 或 +第一行内容 或 -第一行内容

有序列表:1.第一行内容

图片:![图片](image path)

链接:[链接文字](url) 或 <url>

simditor-markdown's People

Contributors

ruochenlyu avatar farthinker avatar

Stargazers

Archer Reilly avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.