Bytemd Markdown 文本编辑器 Demo
source link: https://www.jansora.com/notebook/107587
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Markdown Basic Syntax
I just love bold text. Italicized text is the cat's meow. At the command prompt, type nano
.
My favorite markdown editor is ByteMD.
- First item
- Second item
- Third item
Dorothy followed her through many of the beautiful rooms in her castle.
import gfm from '@bytemd/plugin-gfm'
import { Editor, Viewer } from 'bytemd'
const plugins = [
gfm(),
// Add more plugins here
]
const editor = new Editor({
target: document.body, // DOM to render
props: {
value: '',
plugins,
},
})
editor.on('change', (e) => {
editor.$set({ value: e.detail.value })
})
GFM Extended Syntax
Automatic URL Linking: https://github.com/bytedance/bytemd
The world is flat. We now know that the world is round.
- Write the press release
- Update the website
- Contact the media
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Footnotes
Here's a simple footnote,1 and here's a longer one.2
Gemoji
Thumbs up: 👍, thumbs down: 👎.
Families: 👨👨👦👦
Long flags: 🏴, 🏴, 🏴.
Math Equation
Inline math equation: a+ba+ba+b
Mermaid Diagrams
graph TD
sequenceDiagram
classDiagram
stateDiagram-v2
erDiagram
journey
gantt
pie title Pets adopted by volunteers
Footnotes
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK