mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +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:
@ -390,10 +390,10 @@ describe TopicEmbed do
|
||||
it "handles malformed links" do
|
||||
url = "https://somesource.com"
|
||||
|
||||
contents = <<~CONTENT
|
||||
contents = <<~HTML
|
||||
hello world new post <a href="mailto:somemail@somewhere.org>">hello</a>
|
||||
some image <img src="https:/><invalidimagesrc/">
|
||||
CONTENT
|
||||
HTML
|
||||
|
||||
raw = TopicEmbed.absolutize_urls(url, contents)
|
||||
expect(raw).to eq(contents)
|
||||
|
Reference in New Issue
Block a user