markdownlint | Markdown lint tool | Code Analyzer library

 by   markdownlint Ruby Version: v0.12.0 License: MIT

kandi X-RAY | markdownlint Summary

kandi X-RAY | markdownlint Summary

markdownlint is a Ruby library typically used in Code Quality, Code Analyzer applications. markdownlint has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Markdown lint tool
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              markdownlint has a medium active ecosystem.
              It has 1554 star(s) with 224 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 123 open issues and 175 have been closed. On average issues are closed in 360 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of markdownlint is v0.12.0

            kandi-Quality Quality

              markdownlint has 0 bugs and 0 code smells.

            kandi-Security Security

              markdownlint has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              markdownlint code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              markdownlint is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              markdownlint releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              markdownlint saves you 736 person hours of effort in developing the same functionality from scratch.
              It has 1697 lines of code, 88 functions and 51 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed markdownlint and discovered the below as its top functions. This is intended to give you an instant insight into markdownlint implemented functionality, and help decide if they suit your requirements.
            • Runs the command line .
            • Extracts text elements from an element .
            • Determine the item for the given item .
            • Search for all elements of a given element .
            • Find all the text elements matching the text .
            • Determines the header based on the header .
            • Defines a new rule .
            • Find all elements of a given type .
            • Add an element to the list
            • Returns line number of lines
            Get all kandi verified functions for this library.

            markdownlint Key Features

            No Key Features are available at this moment for markdownlint.

            markdownlint Examples and Code Snippets

            No Code Snippets are available at this moment for markdownlint.

            Community Discussions

            QUESTION

            Angular 11 is not running ngcc
            Asked 2021-Apr-19 at 19:46

            I have an old Angular application, which I have upgraded from Angular 9 to Angular 11. (It had many stable upgrades throughout the years, starting from Angular 2)

            My problem is, that the ngcc is not running ng build:

            ...

            ANSWER

            Answered 2021-Feb-03 at 14:10

            My problem was that an another tsconfig file was overwriting the root's definitions, and turned off ivy and ngcc altogether.

            sr5c/tsconfig.app.json:

            Source https://stackoverflow.com/questions/65901974

            QUESTION

            Markdown - why inserting raw html element in markdown document is not recommended?
            Asked 2021-Jan-19 at 19:54

            I used to write posts by markdown.

            When I insert html elements in markdown document, markdownlint tell me that the document violates the markdown rule "MD033 - Inline html".

            Rule "MD033 - Inline html" is triggered whenever raw HTML is used in a markdown document.

            However, I don't know why inline html element is not allowed in markdown document.

            I have searched it in google, but I can't find it.

            If anyone who read this post know this, please let me know.

            Always Thanks.

            ...

            ANSWER

            Answered 2021-Jan-19 at 19:54

            Linters encourage best practices and are often more strict than the syntax rules and/or parser/compiler. Wikipedia states that "a linter, is a static code analysis tool used to flag programming errors, bugs, stylistic errors, and suspicious constructs."

            While programming errors will cause things to break, stylistic errors may only be recognizable by looking at a document. Therefore, organizations often define a style guide that they require all contributors to a project to follow.

            A style guide or manual of style is a set of standards for the writing, formatting and design of documents. ... A style guide establishes standard style requirements to improve communication by ensuring consistency both within a document, and across multiple documents. Because practices vary, a style guide may set out standards to be used in areas such as punctuation, capitalization, citing sources, formatting of numbers and dates, table appearance and other areas. The style guide may require certain best practices in usage, language composition, visual composition, orthography and typography.

            Obviously, a linter is ideal for flagging anything that doesn't fit within an organization's style guide.

            That said, some may only use a linter to flag programming errors and bugs, but not care about "stylistic errors," which will not change the behavior of the output. For example, a Markdown linter may require a blank line between a header and the paragraph that follows it, while Markdown does not strictly require a blank line in that location. If you don't have a style guide which requires the blank line, then you may not want your linter to enforce that blank line.

            For this reason, linters are customizable. You can configure the linter to only run the subset of rules which match your style guide. Some rules may even accept different configuration options which alter what they consider to be acceptable.

            Generally, a linter will default to a configuration that is common among most of its users. However, each organization may have minor tweaks here and there to make. Therefore, you may need to configure the linter you are using to meet your requirements.

            So, why might a style guide (and by extention a linter) disallow inline raw HTML? It's hard to say. You would need to ask the people who authored those style guides. However, we can make a few guesses.

            It could be that the style guide also requires that only very basic inline styling be done to the text of the document. Perhaps anything that is allowed is completely achievable with Markdown syntax. In that case, a linter rule which disallows inline raw HTML is an easy and effective way to enforce that requirement of the style guide.

            Another consideration is the philosophy behind Markdown itself. As the creator of Markdown explains:

            Markdown is intended to be as easy-to-read and easy-to-write as is feasible.

            Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.

            Raw HTML tags detract from that goal, and therefore many view them as undesirable in their Markdown documents. I suspect this is the reason why the linter defaults to this behavior, but you would need to ask the developers of the linter to be sure.

            Of course, if that doesn't fit your needs, or you don't care so much about readability, then you are free to include as many raw HTML tags in your documents as you want. However, you will then need to also custom configure any linter you use so that it ignores rule "MD033".

            Source https://stackoverflow.com/questions/65785047

            QUESTION

            How to have different markdownlint rules for CHANGELOG.md files
            Asked 2020-Dec-11 at 14:40

            In VS Code, I use markdownlint for my markdown files. I like the rules that it imposes except for my CHANGELOG.md file (see keepachangelog.com).

            Is there a way to have one set of rules for most of my markdown files and another set for the change log?

            ...

            ANSWER

            Answered 2020-Dec-11 at 14:40

            You can use custom markdownlint configuration for a file by using the following syntax:

            Source https://stackoverflow.com/questions/65218768

            QUESTION

            Which is the proper language for fenced code blocks when representing directory & file structure in Markdown syntax?
            Asked 2020-Apr-28 at 15:54

            I want to represent my directory & file structure in Markdown syntax with fenced code blocks like this:

            ...

            ANSWER

            Answered 2020-Apr-28 at 15:54

            There's text for non-highlighted fenced blocks compliant with MD040. I'm not sure how much official in Markdown world that is but it is listed in Github's linguist languages.yml as supported highlighted (in fact non-highlighted) language.

            Source https://stackoverflow.com/questions/61452980

            QUESTION

            VSCode - Custom react snippets not working in javascriptreact.json file and also javascript.json file
            Asked 2020-Jan-23 at 17:46

            VSCode Version:

            ...

            ANSWER

            Answered 2020-Jan-23 at 17:46

            Answering my own question as finally reached to the solution from VS Codes very helpful and great team (https://github.com/microsoft/vscode/issues/88936)

            And this is how got closer to the source of the problem - got this strange behaviour, in a React Component.js file when I type the snippet ('clmi' in this case) - before the React Component File's return() statement, I get the expected behaviour. But if I type the snippet ('clmi') inside the return() statement, I dont get anything. i.e. the snippet does not give me the code completion option inside the return () statment.

            The source was that VSCode was not recognizing this file to be a "javascriptreact" language type.

            Solution was as below

            In a React Component's .js file, try the tokens inspector via "F1 > Inspect TM Scopes" and position the cursor at those insert position. That will tell you the detected, embedded language. Depending on your grammar it might be a different language

            And bleow is what I am getting.

            So as you can see, this not JavaScript nor JavaScript React but the jsx-attr language. So now I had to target that type with vscode snippet

            So now, I put the whole snippet in the jsx-attr type target file ~/.config/Code/User/snippets/jsx-attr.json

            And now the custom snippets worked as expected.

            Source https://stackoverflow.com/questions/59810935

            QUESTION

            Github Actions Error; cannot see git diff to Master
            Asked 2019-Oct-31 at 03:40

            I am trying to find a way to lint only markdown files that have changed on the current branch. I wrote a bash script that runs fine locally, but breaks in Github Actions.

            Expected Outcome: lint only markdown files that have been changed on the branch in GitHub Actions on pull-request.

            ...

            ANSWER

            Answered 2019-Oct-31 at 03:40

            I think you can resolve it by associating master with origin master like this:

            Source https://stackoverflow.com/questions/58630097

            QUESTION

            Who create this rectangle in VIsual Studio Code markdown text edit?
            Asked 2019-Mar-01 at 10:55

            Please look up this picture. I opened Visual Studio Code 1.31.0, create new file, write below, then, the rectangle shown in this picture was appeared.

            ...

            ANSWER

            Answered 2019-Mar-01 at 10:55

            This is a feature introduced in v1.5.0 of Markdown All in One. You can control it with setting markdown.extension.syntax.decorations.

            Source https://stackoverflow.com/questions/54625024

            QUESTION

            github markdown split source table lines
            Asked 2018-Dec-24 at 23:25

            I got a pretty complex markdown table with plenty of columns. I want to keep linter (in my case it's makdownlint) happy and keep lines pretty and in 80 characters limits. But headers data is complex so my table looks like this

            ...

            ANSWER

            Answered 2018-Dec-24 at 23:25

            In short: No.

            GitHub's spec does not provide for breaking a row across lines. Of note is the description of rows:

            Each row consists of cells containing arbitrary text, in which inlines are parsed, separated by pipes (|). A leading and trailing pipe is also recommended for clarity of reading, and if there’s otherwise parsing ambiguity. Spaces between pipes and cell content are trimmed. Block-level elements cannot be inserted in a table.

            Of course, while that doesn't specifically support it, it also doesn't explicitly exclude breaking a row across multiple lines. However, notice that the syntax does not offer any way (outside of a line break) to define when one row ends and another row begins (unlike the header row, which requires a "deliminator row" to divide it from the body of the table). As you cannot define the division between rows, then the only way the parser can determine when one row ends and another begins is with a line break.

            And then we have this issue:

            The remainder of the table’s rows may vary in the number of cells. If there are a number of cells fewer than the number of cells in the header row, empty cells are inserted. If there are greater, the excess is ignored:

            In other words, the parser can not count columns to determine if the next line is a continuation of the previous row or a new row.

            Finally, elsewhere the spec states that:

            A backslash at the end of the line is a hard line break:

            There are some exceptions for specific types of content, but tables are not mentioned at all in the backslash escapes section of the spec and therefore do not fit any of those exceptions. Thus, using a backslash escape at the end of the line only reinforces the fact that the line ends a row, which is the opposite of your desired effect.

            So, no, there is no way to wrap a table row across multiple lines.

            For comparison consider MultiMarkdown, which had support for the same table syntax long before GitHub offered it. MultiMarkdown's documentation plainly states:

            Cell content must be on one line only

            This behavior matches PHP Markdown Extra, which first introduced the syntax. In fact, I'm not aware of any implementation of this specific table syntax which supports any way for one row to be defined on multiple lines.

            Source https://stackoverflow.com/questions/53896668

            QUESTION

            How to use npm Marked with HighlightJS
            Asked 2018-Feb-17 at 19:08

            How do you use npm Marked with HighlightJS? I'm trying to automate my docs to be parsed and styled. Looking at the following example from marked docs:

            ...

            ANSWER

            Answered 2018-Feb-17 at 19:08

            Based on this post, the docs once specified the following but its been removed from the docs:

            Source https://stackoverflow.com/questions/48843806

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install markdownlint

            Markdownlint is written in ruby and is distributed as a rubygem. As long as you have a relatively up to date ruby on your system, markdownlint will be simple to install and use. You have 2 options to install it:.

            Support

            See CONTRIBUTING.md for more information.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/markdownlint/markdownlint.git

          • CLI

            gh repo clone markdownlint/markdownlint

          • sshUrl

            git@github.com:markdownlint/markdownlint.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Code Analyzer Libraries

            javascript

            by airbnb

            standard

            by standard

            eslint

            by eslint

            tools

            by rome

            mypy

            by python