mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-07 13:57:13 +00:00
[PR #60] [MERGED] Fixes issue where punctuation forms part of word, so abbreviation is not valid #797
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/60
Author: @christophano
Created: 9/20/2016
Status: ✅ Merged
Merged: 9/20/2016
Merged by: @xoofx
Base:
master← Head:bugfix/abbreviation-preceded-by-punctuation📝 Commits (1)
a9b626eFixes issue where punctuation forms part of word, so abbreviation is not valid.📊 Changes
3 files changed (+67 additions, -12 deletions)
View changed files
📝
src/Markdig.Tests/Specs/AbbreviationSpecs.md(+10 -0)📝
src/Markdig.Tests/Specs/Specs.cs(+22 -0)📝
src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs(+35 -12)📄 Description
I've had an issue where abbreviations are being created for words that contain punctuation.
Example:
Is rendered as:
I've adjusted the
AbbreviationParserto allow punctuation to embrace matches only if they are further embraced by \0 or whitespace.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.