pingcap-inc / tidb-community-editor

https://pingcap-inc.github.io/tidb-community-editor/
0 stars 1 forks source link

How to add new elements? #2

Open 634750802 opened 3 years ago

634750802 commented 3 years ago

Initial thoughts:

  1. Impl remark plugin (define a new mdast node type)
  2. Define configs in src/slate-markdown/elements
634750802 commented 3 years ago

An example commit is here a1b107c for #1