Add identifier to blockquote #558

Closed
opened 2026-01-29 14:39:39 +00:00 by claunia · 2 comments
Owner

Originally created by @CayasSoftware on GitHub (Sep 16, 2022).

I would like to ask a question on how to add an identifier to a parent element like a blockquote.
My markdown looks like this:

>test
>
>{#add}

Which will be rendert to the following HTML:

<blockquote>
    <p>test</p>
    <p id="add"></p>
</blockquote>

My assumption was that, because it is placed at the blockquote, the id will be attached there. Unfortunately it is attached to the p-element. I also tried it between > and test which attaches the id to the first paragraph tag.

My desired result should look like:

<blockquote id="add">
    <p>test</p>
    <p></p>
</blockquote>

Any advice on how to make it right would be great.

Originally created by @CayasSoftware on GitHub (Sep 16, 2022). I would like to ask a question on how to add an identifier to a parent element like a blockquote. My markdown looks like this: >test > >{#add} Which will be rendert to the following HTML: <blockquote> <p>test</p> <p id="add"></p> </blockquote> My assumption was that, because it is placed at the blockquote, the id will be attached there. Unfortunately it is attached to the p-element. I also tried it between > and test which attaches the id to the first paragraph tag. My desired result should look like: <blockquote id="add"> <p>test</p> <p></p> </blockquote> Any advice on how to make it right would be great.
claunia added the question label 2026-01-29 14:39:39 +00:00
Author
Owner

@xoofx commented on GitHub (Sep 20, 2022):

You need to add it just before (here) (and need a white line before the attribute)

{#add}
> test
@xoofx commented on GitHub (Sep 20, 2022): You need to add it just before ([here](https://babelmark.github.io/?text=%7B%23add%7D%0A%3E+test%0A%3E)) (and need a white line before the attribute) ```md {#add} > test ```
Author
Owner

@CayasSoftware commented on GitHub (Sep 20, 2022):

Thank you very much. That was the only combination I had not tried.

@CayasSoftware commented on GitHub (Sep 20, 2022): Thank you very much. That was the only combination I had not tried.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#558