Просмотр исходного кода

Never decorate inside math (#13810)

GitOrigin-RevId: c28d0aaa3ce267d989db779c13f6b3e91f376686
Alf Eaton 3 лет назад
Родитель
Сommit
faff4a87b4

+ 2 - 1
services/web/frontend/js/features/source-editor/extensions/visual/atomic-decorations.ts

@@ -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)) {