Skip to content

add missing newlines for definition lists#200

Merged
chrispy-snps merged 1 commit intomatthewwithanm:developfrom
chrispy-snps:chrispy/fix-definition-list-newlines
Mar 2, 2025
Merged

add missing newlines for definition lists#200
chrispy-snps merged 1 commit intomatthewwithanm:developfrom
chrispy-snps:chrispy/fix-definition-list-newlines

Conversation

@chrispy-snps
Copy link
Copy Markdown
Collaborator

Fixes #199.

Newlines are now inserted as follows:

  • Before and after <dl> tags
  • Before <dt> tags

The updated behavior was tested with Pandoc. Unit tests are updated accordingly.

In addition, <dl>, <dt>, and <dd> tags are now included in whitespace optimization around block elements.

Signed-off-by: chrispy <chrispy@synopsys.com>
@chrispy-snps chrispy-snps requested a review from AlexVonB March 1, 2025 16:02
@chrispy-snps chrispy-snps merged commit 5122c97 into matthewwithanm:develop Mar 2, 2025
1 check passed
Wuhall pushed a commit to Wuhall/python-markdownify that referenced this pull request May 21, 2025
Signed-off-by: chrispy <chrispy@synopsys.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Definition lists do not insert required newlines

2 participants