Comments (1)
Implementing this will use the same 'find all blockquotes, and check the indent of all lines inside any collected text elements inside the children, and treat the first line special' that was used in MD023, so we should abstract this out:
text = p.children.select { |e| e.type == :text }.map {|e| e.value }.join
lines = text.split("\n")
# Text blocks have whitespace stripped, so we need to get the 'real'
# first line just in case it started with whitespace.
lines[0] = doc.element_line(p)
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 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
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.