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

fixed ad-title rendering #201

Closed
wants to merge 2 commits into from
Closed

fixed ad-title rendering #201

wants to merge 2 commits into from

Conversation

hyj0824
Copy link

@hyj0824 hyj0824 commented Aug 28, 2023

From issues #200

I found a small flaw in the rendering of the callouts(admonitions) :)
The codeblock-style admonition title(with markdown) cannot be corretly rendered, which it could be done in the Obsidian.

And it's easy to fix it. All you need to do is adding md.render(). Would you mind to add this in the next release?

图片

const titleDiv = titleLine
? `<div class="callout-title"><div class="callout-title-inner">${titleLine}</div>${foldDiv}</div>`
: "";
? `<div class="callout-title"><div class="callout-title-inner">${md.render(titleLine)}</div>${foldDiv}</div>`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When no title is given, it should output the admonition type in the title div.

@hyj0824 hyj0824 closed this by deleting the head repository Oct 7, 2023
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.

1 participant