-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: marked extensions #230
base: master
Are you sure you want to change the base?
Conversation
Seems legit. This should only cover extensions that are not possible to implement as Nuemark extensions/tags. Footnote is probably the only one. Anything else? |
Well, you can also add all the other marked extensions. e.g.
https://marked.js.org/using_advanced#extensions Still WIP, as I have to do the todos, and want to use BTW, I think, this config isn't needed, as the options are deprecated ( |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Note I'm not sure, if the config file might be better to be implemented with name |
I've been hesitant to merge this, even when completed, due to increasing dependency to Marked, which is not my favorite parser. |
WIP
/POC
implementation for marked extension loading.Description
The default file to load from is
marked.config.js
but this can be changed using themarked_config
key insite.yaml
.The provided file path currently has to be relative to the
root
folder of the project / the root passed tonue
commandThe config
js
file has to be of format:If no file is found, the import() function silently returns an empty object which, on unpacking, results in an empty list for
marked_extensions
variableTODO
Notes
Maybe allow additional renderers with the following?