Comments (2)
GitHub creates the following anchor for your original example: #buy-
. Using that syntax does not produce a warning from markdownlint: https://dlaa.me/markdownlint/#%25m%23%20Issue%201016%0A%0A%23%23%20Buy%20!%5BIcon%5D(..%2Fresources%2Ficons%2Fbuy.png)%0A%0A%5BLink%5D(%23buy-)%0A
You can read more about this rule's support for the GitHub algorithm toward the bottom of this documentation page: https://github.com/DavidAnson/markdownlint/blob/main/doc/md051.md
It seems like you are using some other platform/algorithm which includes the image description in automatically created anchor links. You may be able to create a named anchor or use an HTML anchor tag to create a custom name and reference that instead. The documentation above includes examples of both.
from markdownlint.
Thanks a lot, you are absolutely correct. The links were working when I used the VS Code native Markdown preview, which put me on the wrong track, but on GitHub they obey different rules. markdownlint works fine with GitHub style links which is good enough for me since GitHub is the intended target of my Markdowns. Thanks again.
from markdownlint.
Related Issues (20)
- QUESTION: Is it possible to write custom linting rules, including Quick Fix information, for frontmatter? HOT 2
- MD056/table-column-count counts pipes inside backticks as column separators HOT 2
- MD014 only considers the `$` sign, is this intentional? HOT 2
- Umlauts like Ä, Ö, Ü in Mailadresses/URLs are not detected as normal letters HOT 5
- HTML disable/enables comments triggered when inside Markdown inline code HOT 4
- Frontmatter interpreted as top-level heading HOT 8
- `markdownlint-disable-next-line` should apply to the next non-empty line HOT 1
- MD045 shown when image has alt text in the optional title HOT 3
- MD029/ol-prefix: Continuous list with more than 10 elements HOT 1
- Include additional schema/types for strict rule name verification HOT 2
- Diabling rules from the front matter? HOT 2
- Reference links are lost between dollar signs HOT 7
- Feature Request: Recognize `markdownlint-*` configuration comments in "non-HTML comments" (unused link reference definitions) HOT 1
- MD036: doesn't fire when any HTML comment is present on the same line.
- MD018 error for ID selectors in inline CSS
- MD051 incorrectly expects lower cased fragment HOT 1
- Link fragments shows warning MD051 when target is preceeded by emoji. HOT 2
- MD010 no-hard-tabs rule is intended for indentation, but is triggered from any tabs HOT 1
- [Feature request] Disable auto correct on save for a specific rule? HOT 4
- [Feature Request] Checking Space around Embedded Code, Bold and Italic HOT 2
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.