mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Never decorate inside math (#13810)
GitOrigin-RevId: c28d0aaa3ce267d989db779c13f6b3e91f376686
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user