-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Markdown Syntax and Processing #73
Comments
Remark is also very good and we can use remark-lint. |
Marksy is using Marked inside and has a dependency of babel-standalone 😭 |
@sapegin awesome, yeah remark does look like a very good option and I'm already seeing plugins that will let us replicate most of github's extensions plus a plugin that looks like it could stand-in for marksy. In terms of the linter though, I feel like it would be better to use one that's decoupled from the actual parser, like markdownlint. I guess
Yeah, it using |
|
We use https://github.com/wooorm/remark-lint, it is plugable, fast and stable, vote for #73 (comment) |
Ok so it seems like we're pretty quickly coming to a consensus of using As a sidenote, another nice thing to figure out would be automated line-length limitation to keep docs consistent. |
@skipjack - Given you seem to have come up with a consensus on tooling, is this something you want to roll into the |
@d3viant0ne yeah sure or we could just close this for now and I'll come back once I've had some time to refactor our markdown processing on webpack.js.org. I already created a remark-loader for similar documentation work at my job so once webpack/webpack.js.org#1612 is in I think I'll try to start on this. As for this repo, I guess we would be adding a |
@skipjack - Do we want to try and make this happen in Defaults 2.0? |
Yeah I should have some time for this in late December, early January finally. Even if I can’t port the site in that time I could likely get a remark-lint config in place. When were you targeting for the 2.0 release? |
In the case of markdown, we could really do it anytime as it's just a new feature. The initial version of defaults 2.x will be done before the end of the weekend. |
Sounds good, yeah definitely won't have something ready by this weekend but I'll be spending a lot of time on the site next week (12/24 - 12/29) so I could probably submit a PR then. If someone else wanted to dig into this before then, that'd be fine too. Here's the general rules I have in mind so far:
Not sure if some of that is too opinionated for all |
I guess Prettier would solve at least most of these issues. |
Ah didn't even realize Prettier also supports Markdown now. I'd be happy to integrate Prettier for all our code formatting on the webpack.js.org site if you all are comfortable with that here as well. We can just fill in the blanks with |
We can combine prettier (code style) + remark (problem not related code style - duplicate headers and etc.) |
@skipjack - As @evilebottnawi suggested, it's usually a matter of Prettier + something as Prettier is focused entirely on stylistic issues. i.e. We use |
Aside from using consistent formatting and layouts on all
webpack-contrib
repositories, we really need to decide on what should be supported in terms of markdown as all the readmes are dynamically pulled into webpack.js.org to be used for a variety of pages. The biggest issue it seems is that while GitHub supports a lot of markdown extensions, they haven't open sourced there parser (as far as I know) which makes it painful for us to support the exact same feature set over at the documentation repo.Right now we have an extremely long utility that extends the popular, but no longer maintained, marked library. We're still working our way through the backlog of content issues there but I'm really hoping that once that's more under control we can address this markdown issue and potentially switch parsers. So far, there have been a few mentioned that seem promising:
As mentioned above, it would be great if someone knew of a parser that supported most or all of what GitHub's does but, barring that, I think we need to...
This issue is more to discuss the second of those two and potentially add a
.markdownlint
file to this repo to enforce some restrictions on what features thewebpack-contrib
repositories can and can't use.cc @bebraw @michael-ciniawsky
The text was updated successfully, but these errors were encountered: