Skip to content

Commit

Permalink
Fix heredoc syntax
Browse files Browse the repository at this point in the history
for ruby 2.1 or older
  • Loading branch information
unasuke committed Jan 5, 2024
1 parent fa1d35f commit 290541d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/tilt_commonmarkertemplate_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@

it "render markdown with custom prefixed-header id" do
template = Tilt::CommonMarkerTemplate.new(header_ids: "prefix-") do |t|
<<~MARKDOWN
# Foo
MARKDOWN
"# Foo"
end
expected = <<~HTML
<h1><a href="#foo" aria-hidden="true" class="anchor" id="prefix-foo"></a>Foo</h1>
HTML
expected = <<HTML
<h1><a href="#foo" aria-hidden="true" class="anchor" id="prefix-foo"></a>Foo</h1>
HTML
assert_match(expected, template.render)
end
end
Expand Down

0 comments on commit 290541d

Please sign in to comment.