Skip to content

Commit

Permalink
Fix #88: Updated paru to handle pandoc's new-style version string in …
Browse files Browse the repository at this point in the history
…pandoc 2.11.0.4 and up.
  • Loading branch information
htdebeer committed Nov 4, 2020
1 parent ac4e0e5 commit b05f006
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ guide](https://pandoc.org/installing.html) for more information about
installing pandoc.

You can also download the latest gem,
[pandocomatic-0.2.7.3](https://github.com/htdebeer/pandocomatic/blob/master/releases/pandocomatic-0.2.7.3.gem),
[pandocomatic-0.2.7.4](https://github.com/htdebeer/pandocomatic/blob/master/releases/pandocomatic-0.2.7.4.gem),
from Github and install it manually as follows:

``` bash
cd /directory/you/downloaded/the/gem/to
gem install pandocomatic-0.2.7.3.gem
gem install pandocomatic-0.2.7.4.gem
```

Examples
Expand Down
60 changes: 42 additions & 18 deletions example/multiple_input_files/multiple_inputs.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<title>Usage of multiple input files</title>
<style>
html {
line-height: 1.7;
line-height: 1.5;
font-family: Georgia, serif;
font-size: 20px;
color: #1a1a1a;
background-color: #fdfdfd;
}
body {
margin: 0 auto;
max-width: 40em;
max-width: 36em;
padding-left: 50px;
padding-right: 50px;
padding-top: 50px;
Expand All @@ -36,6 +36,7 @@
body {
background-color: transparent;
color: black;
font-size: 12pt;
}
p, h2, h3 {
orphans: 3;
Expand All @@ -46,7 +47,7 @@
}
}
p {
margin-top: 1.7em;
margin: 1em 0;
}
a {
color: #1a1a1a;
Expand All @@ -58,59 +59,82 @@
max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 1.7em;
margin-top: 1.4em;
}
h5, h6 {
font-size: 1em;
font-style: italic;
}
h6 {
font-weight: normal;
}
ol, ul {
padding-left: 1.7em;
margin-top: 1.7em;
margin-top: 1em;
}
li > ol, li > ul {
margin-top: 0;
}
blockquote {
margin: 1.7em 0 1.7em 1.7em;
margin: 1em 0 1em 1.7em;
padding-left: 1em;
border-left: 2px solid #e6e6e6;
font-style: italic;
color: #606060;
}
code {
font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
background-color: #f0f0f0;
font-size: 85%;
margin: 0;
padding: .2em .4em;
}
pre {
line-height: 1.5em;
padding: 1em;
background-color: #f0f0f0;
margin: 1em 0;
overflow: auto;
}
pre code {
padding: 0;
overflow: visible;
}
.sourceCode {
background-color: transparent;
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
height: 1px;
margin-top: 1.7em;
margin: 1em 0;
}
table {
margin: 1em 0;
border-collapse: collapse;
width: 100%;
overflow-x: auto;
display: block;
font-variant-numeric: lining-nums tabular-nums;
}
th, td {
border-bottom: 1px solid lightgray;
padding: 1em 3em 1em 0;
table caption {
margin-bottom: 0.75em;
}
tbody {
margin-top: 0.5em;
border-top: 1px solid #1a1a1a;
border-bottom: 1px solid #1a1a1a;
}
th {
border-top: 1px solid #1a1a1a;
padding: 0.25em 0.5em 0.25em 0.5em;
}
td {
padding: 0.125em 0.5em 0.25em 0.5em;
}
header {
margin-bottom: 6em;
margin-bottom: 4em;
text-align: center;
}
nav a:not(:hover) {
#TOC li {
list-style: none;
}
#TOC a:not(:hover) {
text-decoration: none;
}
code{white-space: pre-wrap;}
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ guide](https://pandoc.org/installing.html) for more information about
installing pandoc.

You can also download the latest gem,
[pandocomatic-0.2.7.3](https://github.com/htdebeer/pandocomatic/blob/master/releases/pandocomatic-0.2.7.3.gem),
[pandocomatic-0.2.7.4](https://github.com/htdebeer/pandocomatic/blob/master/releases/pandocomatic-0.2.7.4.gem),
from Github and install it manually as follows:

``` {.bash}
cd /directory/you/downloaded/the/gem/to
gem install pandocomatic-0.2.7.3.gem
gem install pandocomatic-0.2.7.4.gem
```

Why pandocomatic?
Expand Down
2 changes: 1 addition & 1 deletion lib/pandocomatic/pandocomatic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Pandocomatic
ERROR_STATUS = 1266 # This is the sum of the ascii values of the characters in 'pandocomatic'

# Pandocomatic's current version
VERSION = [0, 2, 7, 3]
VERSION = [0, 2, 7, 4]

# Run pandocomatic given options
#
Expand Down
6 changes: 3 additions & 3 deletions pandocomatic.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Gem::Specification.new do |s|
s.name = 'pandocomatic'
s.version = '0.2.7.3'
s.version = '0.2.7.4'
s.license = 'GPL-3.0'
s.date = '2020-10-15'
s.date = '2020-11-04'
s.summary = 'Automate the use of pandoc'
s.description = 'Pandocomatic is a tool to automate using pandoc. With pandocomatic you can express common patterns of using pandoc for generating your documents. Applied to a directory, pandocomatic can act as a static site generator.'
s.author = ['Huub de Beer']
Expand All @@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.files += Dir['lib/pandocomatic/processors/*.rb']
s.files += Dir['lib/pandocomatic/printer/*.rb']
s.files += Dir['lib/pandocomatic/printer/views/*.txt']
s.add_runtime_dependency 'paru', '~> 0.4', '>= 0.4.2'
s.add_runtime_dependency 'paru', '~> 0.4', '>= 0.4.2.1'
s.add_runtime_dependency 'optimist', '~> 3.0.0', '>= 3.0.0'
s.add_development_dependency 'minitest-reporters', '~> 1.3'
s.add_development_dependency 'yard', '~> 0.9.18'
Expand Down
Binary file added releases/pandocomatic-0.2.7.4.gem
Binary file not shown.

0 comments on commit b05f006

Please sign in to comment.