javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.07k stars 70 forks source link

Issue with wikilinks in title #239

Closed ConchobarGG closed 2 years ago

ConchobarGG commented 2 years ago

I just updated Obsidian from v0.13.23 to v0.14.2 and obsidian-admonition from 6.11 to 9.0.

I used a fixed width page in Obsidian and used HTML   and   to space the title text to do things like so:

image

This still works with plain text but attempting to turn title text into a wikilink breaks everything like so:

image

I've verified that it is not caused by any of my snippets but am unsure of any other direct cause. I've since rolled back to 6.11 and verified using wikilinks this way works with Obsidian v0.14.2

image

valentine195 commented 2 years ago

I fixed this, but in the future it might be better to do this via CSS - especially if you're using wikilinks.

.admonition-blank .admonition-title-content {
   display: flex;
}
.admonition-blank .admonition-title-content > .internal-link:first-child {
   margin-right: auto;
}
ConchobarGG commented 2 years ago

Thanks for the quick fix and that snippet works perfectly, thank you so much!