-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
The markdown table is parsed unexpectedly in css-loader documentation page #1187
Comments
@Alex1990 thanks for pointing this out! |
@skipjack problem here is that we are not escaping This is a markdown from As you can see |
Hmmm after looking at the markdown utility I don't see where the parsing fails. Are we manually parsing each table line somewhere? |
For table we have a custom handler and it starts here https://github.com/webpack/webpack.js.org/blob/master/utilities/markdown.js#L102. Thing is that this is parsed and handled by markdown util, we just add some wrappers around it. |
Yea that's what I noticed when going through it as well. It doesn't seem like we're manually calling |
maybe it's bug in markdown? |
I don't think so because is parsed correctly in github. Maybe in marked but I doubt it, seeing as the reference link issue is definitely caused by our customizations. I really want to move to markdown-to-react-components but don't have the time yet to do the port (I think it'd take a decent amount of effort). |
Not pretty, but I came up with a temp solution. I'll PR it tonight. After digging into it a bit more I'm still unsure as to what we're doing that's breaking this and other stuff (like reference links). I tried commenting some bits out, but nothing seem to fix the odd behaviors. This could be something that just an issue in marked, the only way to find out would be to test a similar table using marked without any customizations. |
Okay, I find it is a marked's bug markedjs/marked#595. And, I use the |
Should we use |
@Alex1990 awesome thanks for digging into that. Unfortunately, reading into that issue doesn't give me much hope that it'll get fixed. I think we just need to switch our markdown parsing process.
The content for that page is actually from another repository. I think it'd be tough to enforce people not to use things that are supported by GFM. We probably need to make sure that when we do update our markdown processing that we fully support GFM if possible. I do have a fix for the meantime I'll add PR for shortly. |
This is allowed in GFM but not supported by marked. See this issue: markedjs/marked#595 Fixes #1187
…nt (#1204) This is allowed in GFM but not supported by marked. See this issue: markedjs/marked#595 Fixes #1187
In the "Options" section of the css-loader documentation.
The text was updated successfully, but these errors were encountered: