-
Notifications
You must be signed in to change notification settings - Fork 86
Conversation
@leipert Thats awesome to try to get pandoc working with the package, I would be glad to give you some help if I can. So the output of Galadirith/roaster with math enabled is quite specific, and there may be differences with how pandoc outputs parsed maths blocks. So what I would suggest is to take a small markdown document with one or two math blocks and dump the output from both the pandoc renderer and the roaster renderer. I think perhaps the easiest way would be to add a I steered clear of using pandoc originally, because it does require installation outside of atom (it can't be added as a node dependency) so I can't promise that I'll be able to merge in your fork, but I would be glad to help you get it working and then I can review everything then :D Let me apologise in advance, I will be (mostly) unreachable over the next 2 weeks but if you have any questions or thought please post them and I'll get back to you as soon as I can :D Thanks again @leipert |
I was able to get it to work !!!
I added a function to the HTML sanitize function which will convert
The pandoc variant fixes actually the following issues:
Only drawback I found so far, it does not render inline math with spaces Furthermore I see the following improvements:
Well and here a short ping @szhorvat as he seems to be interested in the package. |
@Galadirith - just a ping, are you back yet? |
+1 for this :) |
@leipert I'm really sorry for my long absence. So this is just supper impressive :D I would really love to me able to merge this, it definitely seems that pandoc is just more mature and stable (which is no suprise :D) and actually my reservations of installing it on Windows, well theres an .msi so its not difficult :D I'm afraid I am not going to be able to get round to merging this anytime before June 15th, and @KCErb has been working on adding Macro support for a long time in Galadirith/markdown-preview-plus#14 and I belive its only fair that I get his work merged in first. But thank you for all your hard work on this, its looking fantastic and it will be exciting to get you code into the package :D I won't be around much before June 15th, but please do feel free to ping me with anything and if I can I will absolutely get back to you :D |
@Galadirith Welcome back :) The thing is, that the pandoc support is optional, so it won't affect #14. If you are not around that much, maybe you should consider adding more maintainers to the project (I would volunteer). |
TODO-LIST:
Fixes #2, #11, #24, #17, #18 and #20
Original Message:
Hey @Galadirith. I know, this may come surprising and I also know there is lierdakil/markdown-preview-pandoc.
But as far as I am concerned the math there with
--webtex
looks meh.Is there any way to establish pandoc as an optional renderer?
I added basic pandoc rendering, but it is impossible for me to get the math rendered in the preview pane.
Could you give me any hints?