Giter Site home page Giter Site logo

Comments (7)

DavidAnson avatar DavidAnson commented on May 24, 2024

If you want to include inline HTML in your Markdown, you should disable the no-inline-html rule. The README shows multiple ways to do so.

from markdownlint.

Obegg avatar Obegg commented on May 24, 2024

let's assume I don't want inline HTML - how do I get the same result (collapsed section)?

from markdownlint.

DavidAnson avatar DavidAnson commented on May 24, 2024

I don't think the CommonMark specification (or GFM extensions) offers a way to do that.

from markdownlint.

Obegg avatar Obegg commented on May 24, 2024

So if I understand correctly - this error can't be fixed since there's no way to create collapsed sections without using inline HTML,.
If so - then I guess this extension need to add an exception whenever it detects inline HTML for collapsed sections such as <details> and <summery>

from markdownlint.

DavidAnson avatar DavidAnson commented on May 24, 2024

There are many things that can be done in HTML that cannot be done in Markdown. If you want to do many of them, you can disable this rule. If you want to do some of them, you can customize the rule to allow the relevant elements: https://github.com/DavidAnson/markdownlint/blob/main/doc/md033.md

from markdownlint.

Obegg avatar Obegg commented on May 24, 2024

But it should not be custom specifically for me, it should be added globally, I'm not the only one who uses this extension and has collapsed sections.

from markdownlint.

DavidAnson avatar DavidAnson commented on May 24, 2024

The rule exists to block HTML and keep Markdown content pure - for people who want that. The specific scenario raised above does not seem to be more special than any other. In fact, this issue may be the first time it has come up.

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.