Skip to content

Has anyone had success with MDX/KaTeX rendering in an Electron app? #1676

Answered by ChristianMurphy
teauxfu asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't personally tried that particular combo of packages yet, though there is some documentation on how it can be done https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-import-esm-in-electron

The two options which seem most relevant:

  1. configuring WebPack to generate CJS, since you seem to already be using WebPack
  2. Use https://github.com/standard-things/esm to support ESM in electron

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@teauxfu
Comment options

@teauxfu
Comment options

@ChristianMurphy
Comment options

Answer selected by teauxfu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants