Repository navigation
Replies: 2 comments
|
I recently tried it with Typst documents and actually thought the extension stopped working due to the recent update. Yes, you are right, it's not far off from Markdown. |
|
I haven't worked with Typst before, but it looks much more extensive than Markdown, and I'm not sure if using an unmodified Markdown parser for Typst is the best approach. I see a lot of syntax in Typst that is not part of markdown, and would require custom handling just for Typst. If a language server is not installed for Typst, Rewrap applies the markdown parser, which works for ordinary prose, but does not respect any of the Typst-specific syntax that is expected not to wrap or join with adjacent lines. If a language server for Typst is installed, then Rewrap respects whatever the comment indicators are for that language. Currently I see it wrapping I think the ideal solution is to implement a Typst-specific parser or a modified markdown parser that is adapted to respect Typst-specific syntax. What breaks when using the markdown parser for Typst:
Options:
|
Uh oh!
There was an error while loading. Please reload this page.
Typst is a modern alternative to LaTeX.
Typst markup language is not far from markdown (although it's not a Markdown flavour),
and I guess that treating Typst files as Markdown files could give decent results.
May be adding this single line to file
Parsing.Documents.fscould do the job ?Unfortunately I dont know much about F#, node.js and writing a vscode extension and I am unable to test on my own.
Also, I didn't find the vsix file for prerealease 17.x.
All reactions