N
Nuxt3mo ago
Mathieu

Best way to integrate a MDC > LaTex solution ?

Hello there ! As a teacher I write my lessons in Markdown and publish them to my students through a Nuxt/Content/UI setup. I would like to automate a conversion to LaTeX so I can print my lessons as well so my students can have full choice for lessons access. My Markdown files use MDC syntax and I use custom components. With the useContent composable, I can get access to page.body which is a tree representing each MDC file. My goal is to generate LaTeX file from this tree, get easy access to it so I can compile whenever I want. 1. Do you think this is over complicated and could be simplified ? 2. At which level of my app would you do this conversion from tree to LaTex ? 3. Do you see a way to externalise this whole markdown > tree > LaTeX source file so it’s not handled inside my nuxt app ? I feel like https://github.com/nuxt-modules/mdc is the only way to get the tree from MDC file but maybe I am missing something. Thanks a lot !!
GitHub
GitHub - nuxt-modules/mdc: MDC supercharges regular Markdown to wri...
MDC supercharges regular Markdown to write documents interacting deeply with any Vue component. - nuxt-modules/mdc
1 Reply
Mathieu
Mathieu3mo ago
Update : I was indeed overthinking the whole thing. I tried adding a "print" layout, displaying nothing but the rendered markdown. Printing the page without any tweak is okay, I will change few CSS and everything should be fine.
Want results from more Discord servers?
Add your server