Comments (13)
When someone has time to work on it. We will gladly review a PR if you'd like to sent one!
from markdownlint.
FYI, hereβs how the Node implementation handles inline configuration:
https://github.com/DavidAnson/markdownlint/blob/master/README.md#configuration
from markdownlint.
When that mythical PR eventually shows up, it's probably worth considering stand-alone lines like this:
[//]: # (mdlint ignore #00123)
as the comment mechanism. With a blank line preceding and following, that should be valid everywhere. The anchor name may need changed to a unique value (instead of just #
) in order to avoid warnings about duplicated anchors, but otherwise this seems to consistently work natively without requiring that the markdown output must be HTML.
Justification: https://stackoverflow.com/a/20885980/65589
from markdownlint.
Over a year later and this is still a great recommendation. Sometimes html is the only thing that does what I want it to and I want to be able to explicitly ignore a line so my linter isn't making everything yellow. Please add in an ignore functionality (both inline and by file). This is a great tool that can easily be made better.
from markdownlint.
Need this to work around this issue #176 (comment)
from markdownlint.
This feature should allow relative line numbers also, which might be more useful for files that are edited a lot.
E.g.
This is a test
some long line here inside a code block that would trigger MD013 but we don't want to because we have a very good reason for having a long line in this specific instance.
{::ignore rule="MD013" relative_line="-2"}
from markdownlint.
FYI, reveal.js handles a similar thing via HTML comments which seems nice because it won't be rendered even by tools that aren't aware of the linter:
https://github.com/hakimel/reveal.js#element-attributes
from markdownlint.
Bumping this issue.
@psyomn please come back from vacation! @Typositoire and I are going a little stir crazy over that one. π
from markdownlint.
from markdownlint.
I would also benefit from this feature π
There is no way that I know of to implement a media in a markdown (other that an image). To illustrate an idea with a video for exemple, an inline exclude for a given block of html would be awsome !
from markdownlint.
Any updates regarding this?
from markdownlint.
RFEs are pretty low priority at the moment... and I have almost no time for mdl between now and February, but have been trying to make time for bugs as they come up. That said, I would definitely not go the kramdown extension route, it's not portable - the HTML comment route that the node markdownlint uses is clean, will be supported by anything rendering the MD, and would be consistent across both implementations. I think that's great.
If someone feels strongly about this feature and wants to take a whack at it, I'll happily review the PR!
from markdownlint.
Any idea when this feature will become reality?
from markdownlint.
Related Issues (20)
- Output result as SARIF
- Please place a new tag version HOT 14
- Bogus error MD057 for inline `A|B` HOT 6
- MD053 false positive for links in admonitions (MkDocs) HOT 2
- Using --config with invalid path doesn't throw an error
- MD029 Ordered list item prefix is error and bug HOT 4
- Wrong mdl version on latest Docker image
- Unable to store '.markdownlint.json' in any other location than root HOT 2
- Fully release v0.13.0
- Please publish release > v0.13.0
- MD024: property allow_different_nesting is not allowed HOT 2
- MD022: add `num_empty_lines_above` and `num_empty_lines_below` parameter
- Publish arm docker image
- [MD041] Error with metadata HOT 2
- Enhance rule MD033 to be more specific
- Remove trailing slashes from filename directory argument
- extra newlines after front matter introduce off-by-one error in line numbers with `--ignore-front-matter`
- MD056 - Consistent column number check not taking into account escaped pipes
- "Extra documentation for rule..." printed when no URL is available
- --filenames-only option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdownlint.