mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-07 21:42:25 +00:00
[PR #49] [MERGED] Fixes issue where multiple definition lists are created when they are nested in a list item. #786
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/49
Author: @christophano
Created: 8/22/2016
Status: ✅ Merged
Merged: 9/14/2016
Merged by: @xoofx
Base:
master← Head:bugfix/nested-definition-lists📝 Commits (2)
d003837Fixes issue where multiple definition lists are created when they are nested in a list item.86fb962Removes BlankLineBlock if it is found after an active definition list.📊 Changes
3 files changed (+76 additions, -2 deletions)
View changed files
📝
src/Markdig.Tests/Specs/DefinitionListSpecs.md(+25 -0)📝
src/Markdig.Tests/Specs/Specs.cs(+37 -0)📝
src/Markdig/Extensions/DefinitionLists/DefinitionListParser.cs(+14 -2)📄 Description
I've experienced an issue where a nested definition list outputs multiple definition lists, instead of one list with multiple terms.
The following markdown:
is rendered as:
instead of:
I've tracked this down to the way the
DefinitionListParserwill look for the item before the lastParagraphBlockfor an existingDefinitionListbut, when theDefinitionListis nested in aListItem, there will be an additionalBlankItemBlockbetween them.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.