Closed eikowagenknecht closed 1 month ago
It might be a good idea to create a new options.titleInner
where the tagName and properties can be set, similar to options.title
, allowing a new div tag to be specified there. Additionally, if option.icon
or options.foldIcon
is specified, it would be convenient to set {tagName: "div", properties: {dataCalloutTitleInner: true}}
as the default value for options.titleInner
.
What do you think about adding this option?
I will be able to start working on this after next Tuesday. However, PRs are always welcome at any time.
Thank you for suggesting the new feature.
Currently, when an icon is added, it is rendered like this:
Now "Callout with ", "
code
", ", ", "emphasis", "and a formula in the title: $\frac{\sqrt{k}}{A \cdot B}$" are all separate elements, so if I want to use a flexbox to align the icon in the same row as the title, it affects those as well.Obsidian itself adds another div here (
callout-title-inner
), like this:which can neatly be layouted with flexbox.