mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #736] [MERGED] Better literal delimiter content string slice #1206
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/736
Author: @zickb
Created: 8/30/2023
Status: ✅ Merged
Merged: 8/30/2023
Merged by: @xoofx
Base:
master← Head:better_literal_delimiter_content_string_slice📝 Commits (4)
06eb6baBetter content string slice of delimiter literals:ccb75fdMerge branch 'master' into better_literal_delimiter_content_string_slice6d75eedDon't break external users of the public constructordba94a2Add documentation for the new constructor.📊 Changes
3 files changed (+50 additions, -9 deletions)
View changed files
📝
src/Markdig.Tests/TestEmphasisPlus.cs(+17 -1)📝
src/Markdig/Parsers/Inlines/EmphasisInlineParser.cs(+8 -6)📝
src/Markdig/Syntax/Inlines/EmphasisDelimiterInline.cs(+25 -2)📄 Description
Instead of creating a new StringSlice only containing the delimiter chars, use the provided StringSlice from the match method with an appropriate start and end index.
Marked as draft until it is clear if this change is desired.
Fixes: #735
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.