ben-love-zy / web-editor-markdown Goto Github PK
View Code? Open in Web Editor NEWA Markdown editor in browser with collaborative editing
License: MIT License
A Markdown editor in browser with collaborative editing
License: MIT License
大神,能不能给点解答,源码里面 MNode 类型
里面有 pre, next 了,是个双链表,怎么还有个 firstChild, lastChild 类型
有点不太明白了
`export class MNode {
type: NodeType;
parent: MNode | null = null;
firstChild: MNode | null = null;
lastChild: MNode | null = null;
prev: MNode | null = null;
next: MNode | null = null;
open: boolean = true;
stringContent: string = '';
sourceStart: number;
sourceEnd: number;
blockMarkerBefore: string | undefined = ''; // 标识占位符(叶子块需要,目前只有代码块和标题需要,因为其他叶子快内部可以包含p标签)
blockMarkerAfter: string | undefined = ''; // 标识占位符(叶子块需要,目前只有代码块和标题需要,因为其他叶子快内部可以包含p标签)
marker: string = ''; // 是否是文本标记符占位节点
isShow: boolean = true; // 是否需要显示和隐藏(隐藏的话直接不创建dom节点,占位场景)
// lastLineBlank: boolean = false; // 末尾是否存在空白行,用于换行时容器切换
constructor (sourceStart: number) {
this.sourceStart = sourceStart;
}`
能否添加图形工具栏进行操作,这些有些记不清的md语法,可以图形化操作
我下载源码发现编译不过,README.md 应加入开发者支持内容: 如node版本,开发环境要,编译步骤,事项等
大佬你怎么才出现
我找这样的md编辑器,找了很久了
很像实现一个像typora那样的效果,就是找不到,或者找到了不太满足
刚发现你这个库,太棒了
感谢大佬的贡献,感觉像凭空出现了一样
我创建了一个vue模板,但是他跑不起来,作者能给一个详细点的例子吗,我的vue文件是这样的
`
现在只要检测到输入了 “>” 符号,就立马变成了引用块了
但是,用户真的想输入 > 符号怎么办?
我觉得应该是回车或者空格的时候,再变成引用块
markdown技术人员用的多,plantuml日常画图工具,支持一下。
代码编辑这块做还比较弱,typora用codemirror。
sequence
flowchart
mermaid
nomnoml
MarkVis
plantuml
charts
http://jumly.tmtk.net/
Wavedrom
graphviz
musical ABC notation
Draw IO
markmap.js
ctrl+a , 全选,删除,只删除掉光标前面的部分,光标后面的部分没有删除掉
期望:全部删除
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.