markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

Request for explanations

Open hutou opened this issue 5 years ago • 2 comments

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?
  3. 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.

hutou avatar Oct 04 '20 13:10 hutou

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

iamcco avatar Oct 09 '20 03:10 iamcco

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

hutou avatar Oct 17 '20 08:10 hutou