mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Keep all the indenting in the text
This commit is contained in:
@@ -210,7 +210,7 @@ class HtmlToMarkdown
|
||||
|
||||
def visit_text(node)
|
||||
node.content = node.content.gsub(/\A[[:space:]]+/, "") if node.previous_element.nil? && EMPHASIS.include?(node.parent.name)
|
||||
@stack[-1].markdown << node.text.gsub(/\s{2,}/, " ")
|
||||
@stack[-1].markdown << node.text
|
||||
end
|
||||
|
||||
def format_block
|
||||
|
||||
Reference in New Issue
Block a user