vimwiki_markdown 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +29 -0
- data/README.md +1 -1
- data/lib/vimwiki_markdown/template.rb +5 -1
- data/lib/vimwiki_markdown/version.rb +1 -1
- metadata +2 -2
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f1e1d20697d5a731b15239141a4924be65a38a7dbce81255220c737766bd4e4
|
4
|
+
data.tar.gz: 187a2a2bfbd8b44149594cce4d9608246c7286cc4058d509ba9da2c5dac59d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 655f2171a7f65a6d26d126a677f69a6484d1347548d11df4f5a8f48238d7a2c05176c1c6862a854218b051182ce221527f5312616c88a14aaf43deda573af945
|
7
|
+
data.tar.gz: 7f1f0af3584f1763391cfe2b713bcbce03d5d1153cb1d1aa562970d5a109f8e13c8a7e4ea07de9ea9f72388428a4bf818d94f6cb8933d82d3c530c4ebb26ce09
|
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
name: CI
|
3
|
+
|
4
|
+
on:
|
5
|
+
pull_request:
|
6
|
+
branches:
|
7
|
+
- '*'
|
8
|
+
push:
|
9
|
+
branches:
|
10
|
+
- master
|
11
|
+
jobs:
|
12
|
+
# SQLITE
|
13
|
+
testrunner:
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
strategy:
|
16
|
+
matrix:
|
17
|
+
ruby: ['2.7', '3.0', '3.1']
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
bundler-cache: true
|
26
|
+
|
27
|
+
- name: Run tests
|
28
|
+
run: |
|
29
|
+
bundle exec rspec spec
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# VimwikiMarkdown
|
2
|
-
[![Code Climate](https://codeclimate.com/github/patrickdavey/vimwiki_markdown/badges/gpa.svg)](https://codeclimate.com/github/patrickdavey/vimwiki_markdown) [![
|
2
|
+
[![Code Climate](https://codeclimate.com/github/patrickdavey/vimwiki_markdown/badges/gpa.svg)](https://codeclimate.com/github/patrickdavey/vimwiki_markdown) [![CI](https://github.com/patrickdavey/vimwiki_markdown/actions/workflows/ci.yml/badge.svg)](https://github.com/patrickdavey/vimwiki_markdown/actions/workflows/ci.yml)
|
3
3
|
|
4
4
|
This gem allows vimwiki pages written in (github enhanced) markdown
|
5
5
|
to be converted to HTML.
|
@@ -27,7 +27,7 @@ module VimwikiMarkdown
|
|
27
27
|
|
28
28
|
def fixtags(template)
|
29
29
|
@template = template.gsub('%title%',title)
|
30
|
-
.gsub(
|
30
|
+
.gsub(pygments_marker,pygments_wrapped_in_tags)
|
31
31
|
.gsub('%root_path%', root_path)
|
32
32
|
.gsub('%date%', Date.today.strftime("%e %b %Y"))
|
33
33
|
end
|
@@ -54,6 +54,10 @@ module VimwikiMarkdown
|
|
54
54
|
raise MissingRequiredParamError.new("ERROR: vimwiki template must contain %pygments% placeholder token. Please visit https://github.com/patrickdavey/vimwiki_markdown for more information")
|
55
55
|
end
|
56
56
|
|
57
|
+
def pygments_marker
|
58
|
+
dark_template? ? "%dark_pygments%" : "%pygments%"
|
59
|
+
end
|
60
|
+
|
57
61
|
def dark_template?
|
58
62
|
@template =~ /%dark_pygments%/
|
59
63
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimwiki_markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Davey
|
@@ -229,11 +229,11 @@ executables:
|
|
229
229
|
extensions: []
|
230
230
|
extra_rdoc_files: []
|
231
231
|
files:
|
232
|
+
- ".github/workflows/ci.yml"
|
232
233
|
- ".gitignore"
|
233
234
|
- ".hound.yml"
|
234
235
|
- ".rspec"
|
235
236
|
- ".rubocop.yml"
|
236
|
-
- ".travis.yml"
|
237
237
|
- A.png
|
238
238
|
- B.png
|
239
239
|
- Gemfile
|