Open amglez opened 1 year ago
Yeah, not sure the best way to go about this. I meant inline
more as in contrast to embedded style, not within a paragraph. If this was ever added, it'd have to be a different keyword unfortunately.
The other thing is that the way obsidian treats extensions as separate blocks by default, so it take some work to get it to display correctly in live and reading modes.
It could be done with JS. Something like:
document.addEventListener("DOMContentLoaded", function() {
// Locate the <em> element
const emElement = document.querySelector('.internal-embed .el-p p em');
// Create a new <span> element
const newSpan = document.createElement('span');
// Copy the text from <em> to <span>
newSpan.textContent = emElement.textContent;
// Replace the <em> element with the new <span>
emElement.replaceWith(newSpan);
});
I'd love to see it. My skills are not on this level yet.
I would write something like: