Sha256: 73ef5387663a5ee7b1d5d6cd9324ee64d78adedf1ca3bf3ffce5b89e3e331e26
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# encoding: utf-8 module HTML class Pipeline class LinuxFr CONTEXT = { toc_minimal_length: 5000, toc_header: "<h2 class=\"sommaire\">Sommaire</h2>\n", host: "linuxfr.org" } def self.render(text) pipeline = HTML::Pipeline.new [ HTML::Pipeline::MarkdownFilter, HTML::Pipeline::TableOfContentsFilter, HTML::Pipeline::SyntaxHighlightFilter, HTML::Pipeline::RelativeLinksFilter, HTML::Pipeline::CustomLinksFilter ], CONTEXT result = pipeline.call text result[:output].to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html-pipeline-linuxfr-0.14.1 | lib/html/pipeline/linuxfr.rb |