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 !!
2 replies
How can I encrypt a string in a static Docus website ?
Hello there, I'm running a static Docus website hosted on Netlify.
I'm trying to do a small form submission system that would interact with Notion API. Since they implemeted granular permissions, I don't really care about using my integration token because it will only allow for write, and no read nor update.
But I would like to know about something I don't understand, since I don't really use Nuxt as a power user but just as a Content/Docus baby user : if I wanted to use a system to encrypt a string, for example if I wanted to compare a password to a RSA hashed "good password", how would I know ?
I see there's a crypto-js npm package, I also see Cryptr, but actually I don't know how I could do the integration.
What would be the path from the start
npm install crypto-js
(I say crypto-js but I don't know if it's the one to use) to the v-if="RSA.encrypt(input-password) == HashedGoodAnswer"
in a Vue SFC ?
Thanks a lot for your help.
Also, I'm the one who asked 2 years ago, and few weeks ago again about how to do LaTeX equations in Nuxt Content, and I think answering this encryption question may help me solving my LaTeX issue, since it could help me understand how all this works ?2 replies