Git Product home page Git Product logo

Comments (8)

JamshedVesuna avatar JamshedVesuna commented on May 17, 2024

Definitely! As the function Vim_Markdown_Preview is loaded with this plugin, you can simply type the following to preview any file in markdown:

:call Vim_Markdown_Preview()

You can also make a keyboard shortcut for this as so:

nnoremap <C-p> :call Vim_Markdown_Preview()<Cr>

Which maps Control-p.

from vim-markdown-preview.

 avatar commented on May 17, 2024

I have changed my database editing to spill out .md temporary files, rather that then to change your plugin.
I am wondering if there would be easy way to put a template and show it in template... I guess I will make it somehow. Thank you much, this is helping me greatly.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 17, 2024

As I've shown above, you can even render files without the .md extension as a markdown preview.

Could you elaborate on what you mean by "put a template and show it" ?

from vim-markdown-preview.

 avatar commented on May 17, 2024

While Markdown is often used for HTML generation, I was thinking, there could be an automatic way, to put a template in a directory, and within template to put something like {$markdown} where the generated HTML content would appear inside.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 17, 2024

Can you elaborate? What do you mean by "put a template in a directory" ?

from vim-markdown-preview.

 avatar commented on May 17, 2024

Markdown is used for HTML generation. It would be nice, that user of this plugin, may simply copy his own HTML template and put it in some of plugin templates, or configure the HTML template for the preview.

For example: template would be named like template.html

<html>
{$markdown_body}
</html>

of course, such template would have its own CSS, style, and markups. User of the plugin would be able to actually see how the page looks like on the website, by pressing CTRL-P

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on May 17, 2024

Can't you just source the markdown file that's being created, or even use an iframe? This seems cool, but outside the scope of this specific plugin. Feel free to fork!

from vim-markdown-preview.

 avatar commented on May 17, 2024

I am now simply using macro in .vimrc
https://gist.github.com/rmaddox/8ad4c414fcfc70214c62

from vim-markdown-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.