mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-13 10:53:15 +00:00
Never decorate inside math (#13810)
GitOrigin-RevId: c28d0aaa3ce267d989db779c13f6b3e91f376686
This commit is contained in:
parent
e86c5dc137
commit
faff4a87b4
1 changed files with 2 additions and 1 deletions
|
@ -664,9 +664,10 @@ export const atomicDecorations = (options: Options) => {
|
|||
block: displayMode,
|
||||
}).range(ancestorNode.from, ancestorNode.to)
|
||||
)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return false // never decorate inside math
|
||||
} else if (nodeRef.type.is('HrefCommand')) {
|
||||
// a hyperlink with URL and content arguments
|
||||
if (shouldDecorate(state, nodeRef)) {
|
||||
|
|
Loading…
Reference in a new issue