You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6009fa
Browse filesBrowse the repository at this point in the historyBrowse files
expect(linkReferenceAutolinks("Closes #123, see @julius",github)).toBe(
14
+
"Closes [#123](https://github.com/team/repo/issues/123), see [@julius](https://github.com/julius)",
15
+
);
16
+
});
17
+
18
+
it("leaves code, links, images, escapes and definitions alone",()=>{
it("does not nest links inside HTML anchors or code",()=>{
25
+
consttext='See <a href="https://example.com">#12</a> and <code>#13</code>, then #14.';
26
+
expect(linkReferenceAutolinks(text,github)).toBe(
27
+
'See <a href="https://example.com">#12</a> and <code>#13</code>, then [#14](https://github.com/team/repo/issues/14).',
28
+
);
29
+
});
30
+
31
+
it("leaves markdown unchanged for a host that links nothing",()=>{
0 commit comments