-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Customize inline lexer #105
Comments
I'd also like to see something along this line (plus a custom block lexer too). I'm currently working on a documentation parser / generator for based on markdown formatted comments and I need to both filter out the parameter / type annotations from the token stream, as well as convert them to HTML later on. Right now I'm using a custom patched version of marked which just utilizes a couple of callbacks and other small modifications (i.e. storing the raw text of a process nodes e.g. "storing the full "### heading title" for a heading). |
I figured I'd throw my use cases into my +1 for this issue as well. (Ref: adam-p/markdown-here)
I'm sure I could come up with more examples, but those are probably representative. Some things are extensions of MD, and some things are hacks to help people use MD in the weird environment of email better. |
👍 |
Any news on this? I would need the feature of #114 . I understand that it is not added to marked but it should be possible to add it as a custom extension. |
Any news on this? I am looking for something which does basic markdown but allows me to add some custom bindings on top. |
I second the need for this. I patched the file to include my custom lexer, but it's far from ideal. |
Any news on this topic? I'd like to see an option to take out "$...$" and "$$...$$" to pass it to MathJax. It's like two years since the issue was opened. |
@PeterBocan , i needed same future so i added way to optionally pass custom inline and block rules with parse functions. Look at this branch |
I'll look at that! Thanks! |
Any news? |
Look at this branch |
I'd like to be able to customize the inline lexer with an additional type (specifically math). At the moment it's not extendable. There as an implementation of this in #71 but that request was closed by the OP for some reason.
The text was updated successfully, but these errors were encountered: