Comments (4)
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.
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.
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.
Fixed in #111
from markdownlint.
Related Issues (20)
- 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 HOT 1
- 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
- [MD022] consecutive increasing headers should not need to be separated by blank lines HOT 1
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.