Comments (8)
Looks like the dependency we use -> https://github.com/rouge-ruby/rouge has some options for :dark
handling. It'd require a config option etc. to be passed in.
Do you want to give this a go as a PR (especially if you're a ruby dev!)? If not I'll try make time for having a play with it in the next week or so :)
from vimwiki_markdown.
Thanks for the quick response! Unfortunately I don't know very much about ruby development at all or else I'd give this a try.
from vimwiki_markdown.
I have added support for dark mode.
Change your template to have %dark_pygments%
instead of just %pygments%
and it should work. You'll need to upgrade to the latest gem 0.9.0
Let me know how you get on @mattyrc
from vimwiki_markdown.
It's working great! Thank you very much for adding this so quickly.
It took me a minute to realize that both %pygments%
and %dark_pygments%
need to be present in the template file.
Cheers!
from vimwiki_markdown.
It shouldn't require both? I just tested it out locally and it worked fine for me? What happens if you remove %pygments%
and just leave %dark_pygments%
? in what way is it broken?
from vimwiki_markdown.
When %dark_pygments%
only is in the template I am seeing no color in the fenced code block.
I double verified that I am using version 0.9.0 and tested in both Firefox and Chromium.
I've just tried editing the default.tpl from the example_files in three different way and this is what I'm seeing in the html:
%pygments%
and %dark_pygments%
:
Markdown. Note I had to remove backticks in markdown because it would mess up GitHubs code block:
**Java Code**
java
class test {
public static void main(String args[]) {
System.out.println("Hi);
}
}
**Bash Code**
sh
echo "Enter Your Name"
read name
echo "Welcome $name"
from vimwiki_markdown.
Doh! Thanks @mattyrc - I've pushed up 0.9.1 which should fix that issue. You should only need %dark_pygments%
in there now! Thanks for letting me know :)
from vimwiki_markdown.
@patrickdavey I can confirm that it is working with only %dark_pygments%
in version 0.9.1.
Thanks again!
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
- Any tips for post processing the output of this code? HOT 3
- TOC generator seems to get confused by anchors with the same name HOT 21
- mermaid support
- Turn off pygments feature? HOT 5
- How is %title% generated? HOT 1
- When file contains danish letters æøΓ₯ the conversion won't happen. HOT 4
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.