mkraska / meclib

JSXGraph-based dynamic and interactive images in Moodle STACK questions without even touching JavaScript
9 stars 3 forks source link

Make toStack() more robust #35

Closed mkraska closed 11 months ago

mkraska commented 1 year ago

q_0*3a should become q_0*3*a

mkraska commented 1 year ago

Also, Fax should become F_ax, i.e. multi-character names should automatically get an underscore if it is not already there.

mkraska commented 1 year ago

Solved with https://github.com/mkraska/meclib/commit/dcbb203269a557be2f8dd34c2cc9875f843e5d3b

mkraska commented 1 year ago

not solved because q_0 3a is converted to q_0 3_a 3_a is not a valid name in STACK.

This is not an issue of toStack() but of cleanUpName()

mkraska commented 11 months ago

fixed by Aaron in iMeclib