question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaks markdown segment links

See original GitHub issue

Prettier 1.19.1

Playground link

["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:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thorn0commented, Jan 20, 2020
0reactions
tajpouriacommented, Jan 20, 2020

Yeah you right, and I’m totally confused how it works. input:

- [ init ](#init · initialize database and object stores)
- [ init ](#init · initialize database and object stores)

output:

  • init
  • [ init ](#init · initialize database and object stores)

!!!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found