MathJax-single-file icon indicating copy to clipboard operation
MathJax-single-file copied to clipboard

Allow multiple inputs

Open NickGeek opened this issue 6 years ago • 3 comments

It would be nice to be able to create a bundle, say with AsciiMath and TeX inputs.

NickGeek avatar Apr 24 '18 10:04 NickGeek

I'm open to a PR.

pkra avatar Apr 24 '18 10:04 pkra

Yeah, I've got the same problem. I tried to work this around by simply adding the AsciiMath files under TeX in the input variable in main.js, and building with TeX, but it seems like it isn't enough. The AsciiMath files do get bundled in the output file, but AsciiMath still isn't getting processed. Not getting any errors either. TeX input works fine.

To be clear, it looks like:

    TeX: [
        '/jax/input/TeX/config.js',
        '/jax/input/TeX/jax.js',
        '/jax/input/AsciiMath/config.js',
        '/jax/input/AsciiMath/jax.js'
    ],

Smibu avatar Dec 13 '18 15:12 Smibu

@smibu that would be due to https://github.com/pkra/MathJax-single-file/issues/37. If you add extensions/asciimath2jax.js it should work.

Anyway, I'm still open for a PR to accept arrays of inputs. I just don't have time myself.

pkra avatar Dec 13 '18 16:12 pkra