mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

feat: Upgrades to MathJax version 3 and supports setting different configuration files (defaults to 'tex-mml-chtml').

Open HouJP opened this issue 1 year ago • 4 comments

Introduction

This PR is used to upgrade to MathJax version 3 and supports setting different configuration files (defaults to 'tex-mml-chtml).

It is inspired by the issue: mdBook doesn't support mathcal symbols.

Closes #2284.

Background

This PR can fix a bug hidden in MathJax v2 introduced here.

HouJP avatar Jan 06 '24 01:01 HouJP

Thanks for the PR! I believe #1918 is already open to address this. Can you give it a try and see how it works for you?

ehuss avatar Jan 06 '24 02:01 ehuss

Thanks @ehuss!

I took a quick look and I think it will also solve the problem.

The advantage of that PR is that it's more flexible (e.g., local js), but its disadvantages are

  1. It requires larger changes to the configuration compared to this PR.
  2. It's NOT compatible with existing configs.

The advantages of this PR are

  1. This is a tiny change.
  2. It is compatible with previous configs.

I respect the owners' / reviewers' decision. Please feel free to let me know if you prefer to withdraw this PR.

HouJP avatar Jan 06 '24 02:01 HouJP

I prefer this PR because it makes https://github.com/rust-lang/mdBook/pull/2069 much easier

expikr avatar Jan 15 '24 18:01 expikr