Skip to content

Extend the HTML and LaTeX translator #1169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

ngzhian
Copy link
Member

@ngzhian ngzhian commented Mar 31, 2020

Instead of overwriting the nodes, we extend the translators provided by
Sphinx, and customize the visit_math and visit_math_block logic, to do
our hyperlinking logic before calling the base class visit methods. This
allows us to deduplicate the logic we copied earlier.

For mathdefbs.py, remove all latex related logic, since we don't use
this extension to build latex.

Issue #1157

Instead of overwriting the nodes, we extend the translators provided by
Sphinx, and customize the visit_math and visit_math_block logic, to do
our hyperlinking logic before calling the base class visit methods. This
allows us to deduplicate the logic we copied earlier.

For mathdefbs.py, remove all latex related logic, since we don't use
this extension to build latex.

Issue WebAssembly#1157
Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good!

@Ms2ger Ms2ger merged commit 6d6294f into WebAssembly:master Mar 31, 2020
@ngzhian ngzhian deleted the extend-translator branch August 13, 2020 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants