The markdown generator turns titles into strong elements
This commit is contained in:
parent
36d37ccbc9
commit
2360047872
@ -64,7 +64,7 @@ module EventsHelper
|
||||
attributes: %w[href]
|
||||
Kramdown::Document.new(spaces(desc), input: :html, line_width: line_width)
|
||||
.to_kramdown
|
||||
.gsub(/^#+ (.*)/, '### \1')
|
||||
.gsub(/^#+\s+(.*)/, '**\1**')
|
||||
.gsub(/\\([\"'])/, '\1') # Remove slash before quotes
|
||||
.remove(/[[:blank:]]+$/) # Remove extraneous spaces
|
||||
.remove(/{::}/) # Markdown artefact
|
||||
|
Loading…
Reference in New Issue
Block a user