mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-12 05:44:48 +00:00
[PR #357] [MERGED] Ignore backslashes in GFM AutoLinks #968
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/357
Author: @MihaZupan
Created: 7/16/2019
Status: ✅ Merged
Merged: 7/17/2019
Merged by: @xoofx
Base:
master← Head:master📝 Commits (1)
033ddafIgnore backticks in GFM AutoLinks📊 Changes
2 files changed (+25 additions, -15 deletions)
View changed files
📝
src/Markdig.Tests/MiscTests.cs(+10 -0)📝
src/Markdig/Helpers/LinkHelper.cs(+15 -15)📄 Description
Fixes #356
The cause for the last character disappearing stems from this span calculation that uses
link.Lengtheven though backticks could be removed from the string.This honors the difference between links and autolinks as stated in CommonMark and does not allow backtick escaping in automatic autolinks.
Edit: I meant backslash, not backtick
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.