Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add identifier to blockquote #659

Closed
CayasSoftware opened this issue Sep 16, 2022 · 2 comments
Closed

Add identifier to blockquote #659

CayasSoftware opened this issue Sep 16, 2022 · 2 comments
Labels

Comments

@CayasSoftware
Copy link

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.

@xoofx
Copy link
Owner

xoofx commented Sep 20, 2022

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

{#add}
> test

@xoofx xoofx added the question label Sep 20, 2022
@CayasSoftware
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants