1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Description: Change default rendering enging to Text::Markdown::Discount
To respect our users privacy, the default engine should be,
Text::Markdown::Discount rather than use the Github API.
Author: Andrew Ruthven <andrew@etc.gen.nz>
Forwarded: not-needed
Last-Update: 2024-07-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/bin/md-utils.pl
+++ b/bin/md-utils.pl
@@ -57,7 +57,7 @@
-B, --body default is to add body tag, use --nobody to prevent
-b, --both interpolates intermediate file and renders HTML
-c, --css css file
--e, --engine github, text_markdown (default: github)
+-e, --engine github, text_markdown (default: text_markdown)
-h help
-i, --infile input file, default: STDIN
-m, --mode for GitHub API mode is 'gfm' or 'markdown' (default: markdown)
--- a/lib/Markdown/Render.pm
+++ b/lib/Markdown/Render.pm
@@ -57,7 +57,7 @@
$options{title} //= $TOC_TITLE;
$options{css} //= $options{nocss} ? $EMPTY : $DEFAULT_CSS;
$options{mode} //= 'markdown';
- $options{engine} //= 'github';
+ $options{engine} //= 'text_markdown';
my $self = $class->SUPER::new( \%options );
@@ -526,7 +526,7 @@
One of C<github> or C<text_markdown>.
-default: github
+default: text_markdown
=item git_user
|