Git Product home page Git Product logo

Comments (4)

mjankowski avatar mjankowski commented on July 19, 2024

Is it currently possible to specify for mdl to use a style file which is NOT provided by the project itself, but provided by the user/project? This wasn't obvious to me, but it'd be great to be able to use it.

We'd like to use mdl in a CI environment to format check markdown ... but we will consistently violate several of the rules because of the way our page processing works (there will never be an h1 in the markdown, for example, so we want to ignore MD002.

from markdownlint.

mivok avatar mivok commented on July 19, 2024

Yes, you can specify a path name or filename, and mdl will look where you specify rather than in its own style location:

mdl -s ./path/to/style.rb

The current rule is: if the filename has .rb at the end, or there is a / in the name, then treat it as a filename/pathname rather than a built in style.

from markdownlint.

mjankowski avatar mjankowski commented on July 19, 2024

Thanks, makes sense: #65

I like the idea of supporting some logic like:

  • First look in the project for an .mdlrc with rules
  • Then look in ~/.mdlrc for rules
  • If neither exist, use default
  • An -s overrides any of those

from markdownlint.

mivok avatar mivok commented on July 19, 2024

Fixed in #111

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.