Skip to content

Instantly share code, notes, and snippets.

@LuiSlacker
Last active March 13, 2017 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuiSlacker/47ed517961a0c9755f4a529338a5a21c to your computer and use it in GitHub Desktop.
Save LuiSlacker/47ed517961a0c9755f4a529338a5a21c to your computer and use it in GitHub Desktop.
formula-ast-widget usage
<script
type='application/javascript'
src='http://math.citeplag.org/widgets/formula-ast-widget.js'
mathml='<math xmlns="http://www.w3.org/1998/Math/MathML">... Your MathML goes here ...</math>'
nodesToBeCollapsed='["p1.1.m1.1.4.1.cmml", "p1.1.m1.1.3.3.7.1.cmml"]' // comma separated list of content-MML apply-Nodes
collapseSingleOperandNodes='true' // flag wether nodes with only one child should be collapsed - defaults to false
bgColor='#f00' // widgets background color - if omitted defaults to #fff
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment