You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KaTeX has this clever tweak which IIUC avoids breaks between math & adjacent punctuation:
white-space: nowrap;
.katex-inner {
// Making .katex inline-block allows line breaks before and after,
// which is undesireable ("to $x$,"). Instead, adjust the .katex-inner
// style and put nowrap on the inline .katex element.
display: inline-block;
}
Will it work with CodeMirror?
CM's markText() requires widgets to be inline; I'm currently passing inline-block, which works fine, so this should also work.
Just need to check that nowrap doesn't confuse CM.
The text was updated successfully, but these errors were encountered:
KaTeX has this clever tweak which IIUC avoids breaks between math & adjacent punctuation:
Will it work with CodeMirror?
CM's markText() requires widgets to be inline; I'm currently passing inline-block, which works fine, so this should also work.
Just need to check that
nowrap
doesn't confuse CM.The text was updated successfully, but these errors were encountered: