ratfactor / vviki

AsciiDoc-flavored wiki plugin for Vim
MIT License
25 stars 7 forks source link

Add hints for conversion from VimWiki/Markdown content to AsciiDoc wiki #3

Open ratfactor opened 4 years ago

ratfactor commented 4 years ago

Document some helpful tips and/or provide example scripts for converting VimWiki .wiki or Markdown .md syntax to AsciiDoc for use with VViki.

Regex examples for converting links, headings, verbatim blocks, etc.

Either include examples in the README or provide an actual sample script (I'm thinking Bash with something like find or cpio perhaps piped through sed to process each file and create a new directory tree with the converted documents).

As suggested in #2

linux478 commented 3 years ago

this link may help in the process

https://alvinalexander.com/source-code/how-to-convert-html-to-asciidoc-pandoc/

ratfactor commented 3 years ago

@linux478 Interesting idea - export Vimwiki and/or Markdown to HTML and then to AsciiDoc? I might have to try that and see what happens! Thanks. :-)

ossie-git commented 3 years ago

Exporting Markdown -> AsciiDoc directly is better than going through HTML. Pandoc can do this somewhat decently (you still need to clean up your code a little)

ratfactor commented 3 years ago

Ah yes, for sure. But for wiki content in native VimWiki format, HTML output is the only thing Pandoc would be able to help with.