dyndoc-ruby-exec 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dyndoc-converter.rb +8 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea6f937cba5625004c0dd2e73b8f9ae1493633e4
4
- data.tar.gz: 2b2bac49c8767b853627a6860b6bf686755d79aa
3
+ metadata.gz: e83a3581e6d53658a5a6494d2a7ab96d7b2c2d96
4
+ data.tar.gz: a012dcb1a202cbd9899563b6cf34ba04b3338a37
5
5
  SHA512:
6
- metadata.gz: 33ecced854fb87a2bd9de278a561c4c283432c54c74d727b91de2f329ae322b1e2146bf2e2066c13c0278e5ced5d3e31bf3234d54d12d0587de216df72418335
7
- data.tar.gz: c4900008fee19727168c03e54eec4133f614b0590f5e067526564845a4a21d04ea91d26391662fd73cbae5c25c0f1e75f4e46e279176925120820581a402539e
6
+ metadata.gz: 8cfe02d3e1927a3cad2b1f4c9e34865b0e00f68ce05e9706f91888c5850577cacedbf58fe165335e41a632d3c79a7680c2cb52b5fd1ebb4613e9f49876880106
7
+ data.tar.gz: 84fe55b113ccd189315dff475a7c554d94c2d3f1bbde779673c1cd6aaa7bfff8dbf53470ab6c4d3903b6ad98cf1889d74c77b802f5316bbffb973ec93b6b16b6
@@ -124,6 +124,8 @@ module Dyndoc
124
124
  Asciidoctor.convert(code,:attributes => {"icons" => "font"})
125
125
  end
126
126
 
127
+ @@markdown=nil
128
+
127
129
  def Converter.redcarpet_engine
128
130
  unless @@markdown
129
131
  require 'redcarpet'
@@ -175,10 +177,12 @@ module Dyndoc
175
177
  when "adoc>html"
176
178
  Dyndoc::Converter.asciidoctor(code)
177
179
  when "md>html"
178
- ##PandocRuby.new(code, :from => :markdown, :to => :html).convert
179
- tmp=Dyndoc::Converter.markdown(code)
180
- Dyndoc.warn :res,[code,tmp]
181
- tmp
180
+ ## DEBUG MODE
181
+ ##tmp=Dyndoc::Converter.markdown(code)
182
+ ##Dyndoc.warn :res,[code,tmp]
183
+ ##tmp
184
+ ## Normal Mode
185
+ Dyndoc::Converter.markdown(code)
182
186
  when "md>tex"
183
187
  #puts "latex documentclass";p Dyndoc::Utils.dyndoc_globvar("_DOCUMENTCLASS_")
184
188
  if Dyndoc::Utils.dyndoc_globvar("_DOCUMENTCLASS_")=="beamer"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyndoc-ruby-exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Converters and software for dyndoc.