Comments (8)
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.
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.
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.
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.
Can you elaborate? What do you mean by "put a template in a directory" ?
from vim-markdown-preview.
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.
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.
I am now simply using macro in .vimrc
https://gist.github.com/rmaddox/8ad4c414fcfc70214c62
from vim-markdown-preview.
Related Issues (20)
- This plugin doesn't support arch HOT 2
- How do I set url?
- Support for Brave Browser HOT 3
- Doesn't work with remote files HOT 2
- Suggestion - Better syntax highlighting in ```code``` ```enhancement```
- executing job failed: Bad CPU type in executable - Mac M1
- html file created
- I get "Internal Server Error" when call Vim_Markdown_Preview() HOT 1
- Allow preview to be displayed in kiosk mode? HOT 2
- 'call Vim_Markdown_Preview()' can't open the chrome automatically HOT 5
- Opens a new tab on every buffer write on Firefox 60.0.1 HOT 7
- adding syntax highlightening?
- Markdown not matching with Github HOT 1
- Change the top title
- CSS 404 not found HOT 1
- Vim_Markdown_Preview_Local error HOT 1
- "Please install the necessary requirements: https://github.com/JamshedVesuna/vim-markdown-preview#requirements" HOT 1
- wrong error if attempting preview if the file is not saved
- How to Install Daring Fireball's Markdown.pl? HOT 2
- Can you make it more clear which `grip` you are referring to in the README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-markdown-preview.