Skip to content
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

ref!(math-renderer): modularize image generation to make way for typst #1448

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

benlubas
Copy link
Contributor

More or less what it says on the tin.

Extracts the latex specific image generation code into it's own module, and provides that module as configuration to the (now called) math-renderer. This opens up the possibility of other math renderers, the most notable being typst.


Down the road, the norg file format will hopefully have some standard way of specifying the math language, and then this module can be reworked again to take that into account (and possibly render typst and latex in the same document). But for now, user configuration that allows rendering either latex or typst seems like a good starting point.

@vhyrro
Copy link
Member

vhyrro commented May 31, 2024

question: isn't this a breaking change, given the module name is now different?

@benlubas
Copy link
Contributor Author

benlubas commented May 31, 2024

yes, but the other one hasn't released yet.. and I already forgot that latex rendering existed before my PR to make it better lol.

Yea this should maybe be marked breaking

@benlubas benlubas changed the title ref(math-renderer): modularize image generation to make way for typst ref!(math-renderer): modularize image generation to make way for typst May 31, 2024
@benlubas benlubas force-pushed the chore/math_renderer branch from 0905775 to ea925c7 Compare May 31, 2024 20:21
Copy link
Member

@vhyrro vhyrro left a comment

Choose a reason for hiding this comment

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

Big fan of the changes! Just some things here and there.

lua/neorg/modules/core/math/renderer/latex/module.lua Outdated Show resolved Hide resolved
lua/neorg/modules/core/math/renderer/latex/module.lua Outdated Show resolved Hide resolved
lua/neorg/modules/core/math/renderer/latex/module.lua Outdated Show resolved Hide resolved
lua/neorg/modules/core/math/renderer/module.lua Outdated Show resolved Hide resolved
lua/neorg/modules/core/math/renderer/module.lua Outdated Show resolved Hide resolved
lua/neorg/modules/core/math/renderer/module.lua Outdated Show resolved Hide resolved
lua/neorg/modules/core/math/renderer/module.lua Outdated Show resolved Hide resolved
@benlubas benlubas force-pushed the chore/math_renderer branch 2 times, most recently from 3288a4c to 085293d Compare July 8, 2024 21:47
@vhyrro
Copy link
Member

vhyrro commented Jul 15, 2024

I'll probably keep this for Neorg 10.0.0. I'm worried that there'll be an overload of breakages in this release. One step at a time, as they say :)

@benlubas benlubas force-pushed the chore/math_renderer branch from 085293d to 3fc936c Compare July 23, 2024 20:05
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.

2 participants