mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 15:18:37 +08:00
DEV: Correctly tag heredocs (#16061)
This allows text editors to use correct syntax coloring for the heredoc sections. Heredoc tag names we use: languages: SQL, JS, RUBY, LUA, HTML, CSS, SCSS, SH, HBS, XML, YAML/YML, MF, ICS other: MD, TEXT/TXT, RAW, EMAIL
This commit is contained in:
@ -1011,13 +1011,13 @@ module Email
|
||||
|
||||
def forwarded_email_quote_forwarded(destination, user)
|
||||
embedded = embedded_email_raw
|
||||
raw = <<~EOF
|
||||
raw = <<~MD
|
||||
#{@before_embedded}
|
||||
|
||||
[quote]
|
||||
#{PlainTextToMarkdown.new(embedded).to_markdown}
|
||||
[/quote]
|
||||
EOF
|
||||
MD
|
||||
|
||||
return true if forwarded_email_create_topic(destination: destination, user: user, raw: raw, title: subject)
|
||||
end
|
||||
|
Reference in New Issue
Block a user