Breaks markdown segment links
See original GitHub issuePrettier 1.19.1
["INFO" - 10:26:30 AM] Formatting c:\Users\p.tajdivand\.pro\fun\idborm\README.md
["INFO" - 10:26:30 AM] Loaded module 'prettier@1.19.1' from 'c:\Users\p.tajdivand\.pro\fun\idborm\node_modules\prettier\index.js'
["INFO" - 10:26:30 AM] Using ignore file (if present) at c:\Users\p.tajdivand\.pro\fun\idborm\.prettierignore
["INFO" - 10:26:30 AM] File Info:
{
"ignored": false,
"inferredParser": "markdown"
}
["INFO" - 10:26:30 AM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:26:30 AM] Prettier Options:
{
"filepath": "c:\\Users\\p.tajdivand\\.pro\\fun\\idborm\\README.md",
"parser": "markdown",
"printWidth": 120,
"trailingComma": "all",
"singleQuote": false,
"tabWidth": 2
}
["INFO" - 10:26:30 AM] Formatting completed in 130.5972ms.
Input:
- [ init ](#init · initialize database and object stores)
output
- [ init ](#init · initialize database and object stores)
Expected behavior: In this case, I wanna use a link as a reference to the current markdown specific segment and as you see the segment title contains space , but prettier totally break the link, I suggest that prettier not prettify links and segment links by default.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Basic Syntax - Markdown Guide
To create a line break or new line ( <br> ), end a line with two or more spaces, and then type ......
Read more >Markdown Basics — markdown-guide 0.1 documentation
To enclose a segment of text in blockquotes, one must prefix each written line with a greater-than sign. Markdown: > ## Blockquoted header...
Read more >Adding a line break to code blocks in R Markdown
One way I found to change the "tidy" setting of a chunk to false is to add a mid-command comment. This seems to...
Read more >Markdown no newlines in codeblock · Issue #7308 - GitHub
I can work around the issue by just making every single line of code its own block and adding 2 spaces to the...
Read more >GitLab Flavored Markdown (GLFM)
headers, linkable Header IDs. images, embedded videos and audio. line breaks, more line break control. links, automatically linking URLs ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See https://en.wikipedia.org/wiki/Non-breaking_space
Yeah you right, and I’m totally confused how it works. input:
output:
!!!