Package: ruby-kramdown / 1.17.0-1+deb10u2

Metadata

Package Version Patches format
ruby-kramdown 1.17.0-1+deb10u2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
skip_missing_math_engines.patch | (download)

test/test_files.rb | 13 13 + 0 - 0 !
1 file changed, 13 insertions(+)

---
fix_manpage_warnings.patch | (download)

man/man1/kramdown.1 | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

---
Add option forbidden_inline_options.patch | (download)

lib/kramdown/options.rb | 10 10 + 0 - 0 !
lib/kramdown/parser/kramdown/extensions.rb | 6 6 + 0 - 0 !
test/testcases/block/12_extension/options.text | 2 2 + 0 - 0 !
3 files changed, 18 insertions(+)

 add option forbidden_inline_options
0004 Restrict Rouge formatters to Rouge Formatters namesp.patch | (download)

lib/kramdown/converter/syntax_highlighter/rouge.rb | 2 1 + 1 - 0 !
test/test_files.rb | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 restrict rouge formatters to rouge::formatters namespace

ff0218a added support for specifying custom Rouge formatters with the
constraint that the formatter be in theRouge::Formatters namespace, but
it did not actually enforce this constraint. For example, this is valid:

```ruby
Rouge::Formatters.const_get('CSV')
=> CSV
```

Adding the `false` parameter to `const_get` prevents this:

```ruby
Rouge::Formatters.const_get('CSV', false)
NameError: uninitialized constant Rouge::Formatters::CSV
```

This is a backport of the original patch at
https://github.com/gettalong/kramdown/pull/708, backported by Antonio
Terceiro to version 1.17.0.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>