aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-12-03 00:22:22 -0500
committerRalph Amissah <ralph@amissah.com>2013-12-03 00:22:22 -0500
commit66fde27a84a4fca7b93d08cc7ceda19400e8f9ad (patch)
treeef79701befa531e39db4588814204ff641cf800b /lib/sisu/v5/options.rb
parentv5: plaintext, smarttext: asciidoc (diff)
v5: plaintext, smarttext: markdown
Diffstat (limited to 'lib/sisu/v5/options.rb')
-rw-r--r--lib/sisu/v5/options.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sisu/v5/options.rb b/lib/sisu/v5/options.rb
index 3995a1b4..24b75b29 100644
--- a/lib/sisu/v5/options.rb
+++ b/lib/sisu/v5/options.rb
@@ -881,6 +881,9 @@ module SiSU_Commandline
act[:txt_asciidoc]=(mod.inspect =~/"--asciidoc"/) \
? { bool: true, set: :on }
: { bool: false, set: :na }
+ act[:txt_markdown]=(mod.inspect =~/"--markdown"/) \
+ ? { bool: true, set: :on }
+ : { bool: false, set: :na }
act[:manpage]=(cmd =~/i/ \
|| mod.inspect =~/"--manpage"|"--man"/) \
? { bool: true, set: :on }
@@ -972,6 +975,7 @@ module SiSU_Commandline
elsif (act[:txt][:set]==:on \
|| act[:txt_textile][:set]==:on \
|| act[:txt_asciidoc][:set]==:on \
+ || act[:txt_markdown][:set]==:on \
|| act[:xhtml][:set]==:on \
|| act[:epub][:set]==:on \
|| act[:html][:set]==:on \
@@ -1018,6 +1022,7 @@ module SiSU_Commandline
elsif (act[:txt][:set]==:on \
|| act[:txt_textile][:set]==:on \
|| act[:txt_asciidoc][:set]==:on \
+ || act[:txt_markdown][:set]==:on \
|| act[:xhtml][:set]==:on \
|| act[:epub][:set]==:on \
|| act[:html][:set]==:on \