Skip to content

Strip paragraph attributes inside fenced divs during GFM export - #70

Merged
jph00 merged 1 commit into
mainfrom
fix-gfm-nested-paragraph-attrs
Sep 9, 2026
Merged

Strip paragraph attributes inside fenced divs during GFM export#70
jph00 merged 1 commit into
mainfrom
fix-gfm-nested-paragraph-attrs

Conversation

@RensDimmendaal

@RensDimmendaal RensDimmendaal commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Fix md2gfm leaving paragraph attributes in its output when the paragraph is inside a fenced div.

Octavo uses this markup to style blog cards, e.g.:

::: {.listing-card data-tags="|technical|"}
## [Git Friendly](</blog/posts/2022-08-25-git/index.html>)

Aug 25, 2022 · Jeremy Howard
{: .listing-meta}  # <-- these were left in on main

Solving [git] conflicts with `git` | nbdev
{: .listing-description}

[technical](<#tag=technical>){.listing-topic}
{: .listing-topics}  # <-- these were left in on main

![](</blog/posts/2022-08-25-git/cover.png>)
:::

w this PR it turns into:

## [The Jupyter+git problem is now solved](<posts/2022-08-25-jupyter-git/index.md>)

Aug 25, 2022 · Jeremy Howard

Previously, using git with Jupyter could create conflicts and break notebooks. With nbdev2, the problem has been totally solved.

[technical](<#tag=technical>)

![](<posts/2022-08-25-jupyter-git/unreadable-notebook.png>)

@RensDimmendaal RensDimmendaal self-assigned this Sep 9, 2026
@RensDimmendaal RensDimmendaal added the enhancement New feature or request label Sep 9, 2026
@RensDimmendaal
RensDimmendaal requested a review from jph00 September 9, 2026 17:57
@RensDimmendaal RensDimmendaal removed their assignment Sep 9, 2026
@jph00
jph00 merged commit 6a3f9a9 into main Sep 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants