Git Product home page Git Product logo

Comments (13)

jaymzh avatar jaymzh commented on June 20, 2024 7

When someone has time to work on it. We will gladly review a PR if you'd like to sent one!

from markdownlint.

DavidAnson avatar DavidAnson commented on June 20, 2024 3

FYI, here’s how the Node implementation handles inline configuration:
https://github.com/DavidAnson/markdownlint/blob/master/README.md#configuration

from markdownlint.

dannysauer avatar dannysauer commented on June 20, 2024 2

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.

maplion avatar maplion commented on June 20, 2024 1

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.

HariSekhon avatar HariSekhon commented on June 20, 2024 1

Need this to work around this issue #176 (comment)

from markdownlint.

mivok avatar mivok commented on June 20, 2024

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.

DavidAnson avatar DavidAnson commented on June 20, 2024

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.

avanier avatar avanier commented on June 20, 2024

Bumping this issue.

@psyomn please come back from vacation! @Typositoire and I are going a little stir crazy over that one. πŸ˜›

from markdownlint.

psyomn avatar psyomn commented on June 20, 2024

from markdownlint.

replicajune avatar replicajune commented on June 20, 2024

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.

vilhelmprytz avatar vilhelmprytz commented on June 20, 2024

Any updates regarding this?

from markdownlint.

jaymzh avatar jaymzh commented on June 20, 2024

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.

linusjf avatar linusjf commented on June 20, 2024

Any idea when this feature will become reality?

from markdownlint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.