mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +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:
parent
7c4be7f649
commit
2fc70c5572
59 changed files with 392 additions and 392 deletions
|
@ -36,7 +36,7 @@ class Onebox::Engine::YoutubeOnebox
|
|||
# Put in the LazyYT div instead of the iframe
|
||||
escaped_title = ERB::Util.html_escape(video_title)
|
||||
|
||||
<<~EOF
|
||||
<<~HTML
|
||||
<div class="onebox lazyYT lazyYT-container"
|
||||
data-youtube-id="#{video_id}"
|
||||
data-youtube-title="#{escaped_title}"
|
||||
|
@ -49,7 +49,7 @@ class Onebox::Engine::YoutubeOnebox
|
|||
title="#{escaped_title}">
|
||||
</a>
|
||||
</div>
|
||||
EOF
|
||||
HTML
|
||||
else
|
||||
yt_onebox_to_html
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue