iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.82k stars 284 forks source link

Request for explanations #239

Open hutou opened 4 years ago

hutou commented 4 years ago

Thank you first of all for this very useful plugin. I'm trying to understand how it works (but I don't have a great knowledge of web tools and languages, nor of markdown in its different versions ;-) After some time of use, I have a lot of questions. I thank you in advance for the time you will take to answer them.

  1. There are a whole bunch of extensions for Markdown-it. Is it possible to add them to your plugin? (for example, for the superscript: "^2" instead of "2").
  2. Plantuml allows you to create a wide variety of diagrams, not only UML (for example, maths with @startmath or ditaa graphics with @startditaa): These graphics are generated on the www.plantum.com server, like those generated by @startuml. Can "Markdown Preview for (Neo)vim" take them into account?

    1. I discovered a very interesting tool for data modeling, under Python, which generates markdown for relationships and svg for diagrams. It is called mocodo: (https://github.com/laowantong/mocodo http://mocodo.wingi.net). Is it possible to integrate the use of this tool in your plugin?

    Thank you very much.

iamcco commented 4 years ago

There are a whole bunch of extensions for Markdown-it. Is it possible to add them to your plugin? (for example, for the superscript: "^2" instead of "2").

For how to add extensions have a look at https://github.com/iamcco/markdown-preview.nvim/blob/master/app/pages/index.jsx#L9

Plantuml allows you to create a wide variety of diagrams, not only UML (for example, maths with @startmath or ditaa graphics with @startditaa): These graphics are generated on the www.plantum.com server, like those generated by @startuml. Can "Markdown Preview for (Neo)vim" take them into account?

It should do in https://github.com/iamcco/markdown-preview.nvim/blob/master/app/pages/plantuml.js#L1 or https://github.com/iamcco/markdown-preview.nvim/blob/master/app/pages/index.jsx#L6

I discovered a very interesting tool for data modeling, under Python, which generates markdown for relationships and svg for diagrams. It is called mocodo: (https://github.com/laowantong/mocodo http://mocodo.wingi.net). Is it possible to integrate the use of this tool in your plugin?

Render is in browser

hutou commented 4 years ago

Not clear enough for me to get it to work, but thanks anyway for your answer.