-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Configure docsify to use markdown-it #1150
Comments
I created a markdown-it branch in my fork to see what would break if I cut it over. Looks like entities parsing in acorn is breaking. |
I thought for this a while back. We can have this if its not breaking change. feel free to submit a PoC. |
let us know if you need any help 👍 |
I'm thinking about whether it's better to use tui.editor, a powerful markdown editor / parser, which has the parsing and rendering module to handle markdown. At the same time, tui.editor's powerful extension function can better expand the users of the publisher, although we don't need its editor module! |
My WP markdown plug-in will decide to use Tui. Editor to provide users with a better editing and rendering experience! If it can be supported, then the documents I write in the future may have a way to provide the same rendering effect as Tui. Editor! |
The repo of tui.editor is at https://github.com/nhn/tui.editor |
actually we need a parser instead of an editor and I think they dont expose any parser. let me know if they do that |
It does separate the two modules. Take the official CDN as an example. The markdown viewer is located at the following address: |
You can check the official documentation for such an editor / parser. See if it can be used and more suitable for application, but tui.editor needs to input a DOM element and the raw content of markdown for parsing, such as: js:
|
we cant use cdn in core and also, i dont think that is the parser code which you shared. |
The official document of tui.editor is as follows: |
In fact, it can be introduced by NPM or yarn's nodejs package management tool,
|
can you share their parser link ? |
It's just an example from the official website that parses the markdown syntax of |
This is the configuration of |
Of course, I'm just suggesting. |
In general, I use the following code to install:
or
The relevant links are as follows: |
The official website is as follows: |
thanks for the links. I will take a look. |
Thanks, because I chose WP RMD when I developed it, I know it is an excellent markdown renderer! |
Thanks @jack9603301, I haven't used Toast and I'm happy to see that it uses @anikethsaha, what is the best way for me to enlist your help debugging the entity parser |
yea sure |
Looks like I'm missing punycode. |
I think yea, can you. also, I think |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
markdown-it has some great plugins that extend basic markdown functionality. Does the current markdown parser have any equivalent? |
It is a shame that this issue got closed by the stale bot - can it be reopened? |
Sorry, I don't have the ability to reopen it. |
Any progress on supporting markdown-it? |
It's probably on Docsify v5 #1061 |
Arise, zombie issue! Arise! We are currently pushing towards releasing v5 which will be backwards compatible with v4. For this reason, changing markdown parsers for v5 is not an option. I have set the milestone for this issue to v6 to ensure it is considered when that works begins. |
Feature request
Enable the use of markdown-it renderer instead of marked.
What problem does this feature solve?
Docsify is an incredibly well designed documentation generator and its ease of use with Github pages makes it well suited to that purpose. Docsify uses the marked renderer.
Unfortunately, the markdown tool ecosystem is very fragmented and it is difficult to choose feature rich markdown editing tools that will render with high fidelity across static website generation frameworks. On the editing side, HackMD (& CodiMD) is a pack leader for collaboration on Github based markdown. The HackMD VSCode extension also provides a great developer experience. It uses the modern and extensible markdown-it renderer. Its plugin model is allowing it to evolve fast and create the kind of modern content that is expected in blogs, docs, and websites.
What does the proposed API look like?
Not an API change, but presumably it involves swapping out the underlying node packages
These are the markdown-it dependencies in HackMD:
How should this be implemented in your opinion?
I believe that markdown-it's extensibility makes it a great default choice for docsify and having more future-proof. Alternatively, I would be happy to have instructions for swapping out the renderer.
Are you willing to work on this yourself?
Yes. Assuming I am not missing some reason why this isn't pluggable. I would need assistance from docsify core contributors.
The text was updated successfully, but these errors were encountered: