5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/fatty/markdown/render.rb', line 5
def self.render(text, width: 80, palette: nil, theme: nil, truecolor: false) markdown = Redcarpet::Markdown.new(
Fatty::AnsiRenderer.new(width: width, palette: palette, theme: theme, truecolor: truecolor),
tables: true,
fenced_code_blocks: true,
autolink: true,
disable_indented_code_blocks: true,
strikethrough: true,
space_after_headers: true,
underline: true,
highlight: true,
footnotes: true,
)
markdown.render(text)
end
|