Good "Sample Plugins"? #569
Unanswered
sernaferna
asked this question in
Q&A
Replies: 1 comment
-
From your examples:
Most of what I've said above is described in this help article. About shortcuts: this is 100% Lexical - the framework has a nice utility for capturing shortcuts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to build some plugins (I think), and I'm more than happy to look at the code, but I'm having trouble figuring out which plugins would be the best examples to copy from.
I've got a couple of use cases; if someone has suggestions for plugins I could look at to get me started, I'd really appreciate it:
==text==
for highlighting or^text^
for superscript.^text^
notation than<sup>
tags sprinkled through the markdown[|text (field2)|field3;flags]
that would render into a link. I haven't thought it through, but I'm guessing something like<a href=field2 some-attr=field3>text</a>
kind of thing. I'll need something to differentiate it from other links so the export to markdown works -- I'll figure that part out. 😉This feels like a basic question so I apologize for that, it's just that the plugins I've been looking at seem very heavily reliant on working with markdown notations Lexical already knows (e.g., bold formatting using
**
, or links using[]()
, or quotes using>
), but I don't see examples where the existing plugins are creating new notations in markdown, if that makes sense.I've done similar things for marked, so I'm not afraid to get in there and write some regular expressions if required. 😉
Beta Was this translation helpful? Give feedback.
All reactions