remarkjs / remark-lint

plugins to check (lint) markdown code style
https://remark.js.org
MIT License
939 stars 129 forks source link

maximum-line-length not ignoring tables Remark v13 #249

Closed nschonni closed 3 years ago

nschonni commented 3 years ago

Subject of the issue

Tables used to be ignored in v12, but now seeing them flagged. Possibily a missing publish for an updated extension, as I see changes in the for remark changes in https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-maximum-line-length but no package.json bump/publish

Your environment

Filled out from my local environment, but the CI the same issue running Ubuntu

Steps to reproduce

The Action run points out to a few files in https://github.com/nodjes/node, which is downloaded into the tmp folder as part of the CI

https://github.com/nodejs/remark-preset-lint-node/pull/159/checks?check_run_id=1254159017#step:8:209

Expected behavior

Tables should be ignored from line length check

Actual behavior

Table lines are flagged for line length

wooorm commented 3 years ago

Hi there! Good news: seems like a simple fix on your side!

It seems remark-gfm is not in your dependencies. See migration in the release notes: https://github.com/remarkjs/remark/releases/tag/13.0.0

nschonni commented 3 years ago

Thanks! That addressed most of the new issues. Ran into a few other minor possible old hidden bugs related to markded workarounds, but I'll look into that further.

On other possible bug to spin off this, was that before I added remark-gfm it was flagging checkboxes as undefined references, even though there was an explicit checkbox-style configured.

Before I close this off, I wasn't clear whether remark-gfm should be added directly in the plug-ins of https://github.com/nodejs/remark-preset-lint-node/blob/master/index.js or just my current work around of loading it only through the CI --use

wooorm commented 3 years ago
nschonni commented 3 years ago

Sorry, typo, should have been https://github.com/markedjs/marked

wooorm commented 3 years ago

Ahh right. Can this be closed, or any other Qs?

nschonni commented 3 years ago

Yeah, I'll close this and try to figure out the packaging on the other repo. Figured out that it looks like it is actually using remark and rehype now for the node docs, so I'll see if I can narrow down the anchor link parsing bug and open something new