Skip to content

Commit a3cf153

Browse files
Plugin works also for TEI XML element formula
Plugin works for something like: <formula>\frac{x^2+y^2}{z}=1</formula> Signed-off-by: Margareth Warburton <margareth.warburton@unibas.ch>
1 parent da70d36 commit a3cf153

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

latex-images-support/wsAccess.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function applicationStarted(pluginWorkspaceAccess) {
77
},
88
canHandleNodeContext: function (nodeContext) {
99
return "latex" == nodeContext.getNodeName()
10+
|| "formula" == nodeContext.getNodeName()
1011
|| ("foreign" == nodeContext.getNodeName() && "embed-latex" == nodeContext.getAttributeValue("outputclass"))
1112
|| ("tex-math" == nodeContext.getNodeName() && "LaTeX" == nodeContext.getAttributeValue("notation"));
1213
},

0 commit comments

Comments
 (0)