mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-09 21:42:15 +00:00
[PR #56] [MERGED] Fixes problem with multiple, similar abbreviations not parsing correctly #790
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/56
Author: @christophano
Created: 9/13/2016
Status: ✅ Merged
Merged: 9/14/2016
Merged by: @xoofx
Base:
master← Head:bugfix/similar-abbreviations📝 Commits (1)
d70f14aFixes problem with multiple, similar abbreviations not parsing correctly.📊 Changes
3 files changed (+42 additions, -6 deletions)
View changed files
📝
src/Markdig.Tests/Specs/AbbreviationSpecs.md(+12 -0)📝
src/Markdig.Tests/Specs/Specs.cs(+24 -0)📝
src/Markdig/Helpers/TextMatcher.cs(+6 -6)📄 Description
When you have multiple, similar (when an abbreviation is a substring of another abbreviation) abbreviations then only the first abbreviation will be applied.
For example:
should result in:
but instead we get:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.