Comments (3)
The short answer is "no", there certainly aren't any built in hooks to do this.
You can just embed raw html into your .md files and it will be placed verbatim into the HTML output. e.g. just place
<iframe width="560" height="315" src="https://www.youtube.com/watch?v=dQw4w9WgXcQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
into your .md
and it will pop out the other end intact.
I don't think I want to stray too far from what vimwiki
itself does. You'd also run into the problem of exactly what sort of embed to use (width, height etc). I guess you could pipe it on through to sed
or something like that if you want to convert further.
If you want to propose (and build & test) a hook system then I'd be open to the idea. Alternatively I guess you could just fork this gem and build in your own processors :)
I'll leave this open for a few days, or, feel free to close it if you decide not to build the hook system :)
from vimwiki_markdown.
Thanks for getting back.
I found a way to do this. Basically, it's this:
- create your own html conversion script. make sure the script collects all the arguments passed to it
- tell vimwiki to use the custom conversion script with the
custom_wiki2html
setting - in the custom script, make a call to vimwiki_markdown and pass the arguments along to it
- now have the script open the html file output by vimwiki_markdown in step 3
- make modifications to the html code
- save the code back to the same html file
from vimwiki_markdown.
Ah nice work :) yes, that'd work perfectly.
from vimwiki_markdown.
Related Issues (20)
- Reimplement tags functionality HOT 6
- Broken links in HTML HOT 4
- [Solved] Not working.. (problem from ruby) HOT 6
- Allow raw HTML HOT 5
- Relative links for files are not expanded HOT 3
- Checkboxes and TOC aren't correctly rendered HOT 11
- Linking other files in `path_html` and HTML title HOT 4
- initialize: No such file or directory HOT 2
- formulas HOT 2
- Error installing vimwiki_markdown HOT 1
- The conversion will fail when filename of Markdown file is in Chinese. HOT 6
- Error installing vimwiki_markdown HOT 1
- [LinkDescription][LinkToMDFile.md] gets converted as <a href="LinkToMDFile.md.html"> HOT 2
- TOC generator seems to get confused by anchors with the same name HOT 21
- mermaid support HOT 2
- Turn off pygments feature? HOT 5
- How is %title% generated? HOT 1
- When file contains danish letters æøΓ₯ the conversion won't happen. HOT 4
- Pygment styles HOT 8
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 vimwiki_markdown.