-
Hello, I would like to add MyST support in a multi-format editor (Markor on Android), and so I would need to be able to call mystjs as a simple javascript module to parse and render MyST syntax into HTML. I am a quite experienced developer in Python and several other languages, except for javascript, so please excuse me if the following includes dumb questions 😅 There are two issues I am stumbling against to implement the above plan:
Note that I tried to look into other attempts at making javascript editors for MyST, but there is only one and it does not seem to use mystjs but just markdown-it. Thank you very much in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @lrq3000, thanks for your questions! There was some similar discussion here: And a video/getting-started that I made at that time here: Hopefully that starts to satisfy your use case. Happy to answer further questions as you dig in!
There are some parts of the command line tools that don't currently transfer over to use directly in the browser quite yet (e.g. they have reliance on reading from disk to create a table of contents or read a file etc). We are looking to get that done as we are working towards the jupyterlab-myst extension, which is also doing something similar to what you describe. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for all these pointers @rowanc1! I will try soon to make an implementation in Markor :-) Also I wanted to ask you about the mystjs npm package, it seems to be an old release predating myst-cli, right? |
Beta Was this translation helpful? Give feedback.
Hi @lrq3000, thanks for your questions! There was some similar discussion here:
And a video/getting-started that I made at that time here:
Hopefully that starts to satisfy your use case. Happy to answer further questions as you dig in!