Skip to content

Commit

Permalink
tests: fix angle-bracket syntax test: expect namespace-like "foo:" pr…
Browse files Browse the repository at this point in the history
…efixes to be preserved (#102)

A couple years ago, for special markdown-link-like things like "<foo:bar>", the text up to the colon was being stripped, maybe due to namespace handling. Now, it's being preserved. Maybe due to libxml 2.x changes, maybe due to Kramdown/Nokogiri changes or how we're now using them instead of rdiscount and hpricot. I think the new "foo:"-preserving behavior is more correct, both in terms of HTML/XML processing an Ronn's definition of special angle-bracket "<word>" syntax. So I'm marking the new behavior as expected, and not doing any behavioral code changes.

This should get the tests passing again under recent Linux and macOS releases.
  • Loading branch information
apjanke committed Jan 3, 2024
1 parent a39326c commit 7700270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/angle_bracket_syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2 id="NAME">NAME</h2>

<p>or when <code>&lt;WORD&gt;</code> is enclosed in backticks.</p>

<p>or when <var>WORD</var> has a <dot.> or <colon>.</colon></dot.></p>
<p>or when <var>WORD</var> has a <dot.> or <foo:colon>.</foo:colon></dot.></p>

<h2 id="Escaping-angle-brackets">Escaping angle brackets</h2>

Expand Down

0 comments on commit 7700270

Please sign in to comment.