support creating a Language with just a Parser #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i couldn't find a way to create a new
LanguageSupportorLanguageby extending the commonmark/GFM flavored markdowns already defined in this package. After reading through the source, it seems it was most intended to use themarkdownfunction to do this. however, the type constraints on the argument to that function make this infeasible, having to write something like:this change is API-compatible and allows accomplishing what i'm trying to accomplish like the following. note that only the
parserfield of thebasearg is actually used within themarkdownfunctionfor context, the motivation for attempting to do this is adding
tagsto the parser output :)Doesn't passing your configuration directly via
extensionsmake this a lot easier?ah, yes you're right 🤦 thank you!
Pull request closed