Bug in autoformat of markdown links. #368
Replies: 4 comments 2 replies
-
👋 @victor-chebotar, it could be because of GitBook's flavored Markdown which may have nuances compared to standard GFM (we try as much as possible to stick to). I'm not entirely sure if this is related to the presence of an underscore in the link or if it's a general issue with how we handle markdown links. If that's okay with you, let's continue the conversation on the email thread you sent to support 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hi, Aiko!
Thank you for answering!
First, I use vanilla Markdown: link syntax like `[link title](url.com)`
Second, I consider option to work with source files as very essential. Means:
1. GitBook shouldn’t change source files as much as it’s possible.
2. Source files should keep readable and understandable.
3. Don’t invent your own specific syntax.
4. Intention should be clear, when I read specific syntax in source files.
Additional info:
I edited typo in my Bug report #368
Link to page: https://app.gitbook.com/o/9AaMpPWyfFJ6QsETZfuC/s/ls0YGZNV1w7SPwolDJtx/arch-architecht-patterns-arkhitektura-patterny-backup/test-markdown-links
How it looks like:
***@***.***
Source file before: Test -- Markdown links.md
Then I committed file and edited it with GitBook UI.
I changed only file description. (description: file edited v1 -> description: file edited v2)
Source file after: Test -- Markdown links v2.md
You can see here that GitBook autoformatted link url.
Best regards, Victor.
|
Beta Was this translation helpful? Give feedback.
-
The issue still persists and continues to trouble me, so I believe you shouldn't mark the current answer as the correct one. |
Beta Was this translation helpful? Give feedback.
-
GitBook always tries to automatically change my correct markdown tags, and the changes it makes are often incorrect. For example, it always tries to change asterisks * to underscores, which is problematic on GitHub because underscores are not recognized when used with Chinese. How can I prevent GitBook from automatically modifying the format of my text? see https://github.com/taophilosophy/SEP-CN/commit/03a0f58f15cf4423dd4204026c889328110ec386 |
Beta Was this translation helpful? Give feedback.
-
.md
file[title](link-example.com?field_name=5)
actual
6. link is edited and looks like
[title](link-example.com?field\_name=5)
in source fileexpected:
6. format normalization doesn't escape the underscore in markdown link syntax.
here is an example of the link that becomes edited:
unix process model
best regards and thank you!
Beta Was this translation helpful? Give feedback.
All reactions