Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
fix(core/inlines): match task source multiline (speced#3731)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Aug 3, 2021
1 parent b6e96d6 commit faed82e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/inlines.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function inlineAnchorMatches(matched) {
const forContext = isFor ? norm(isFor) : null;
let type = "dfn";
switch (true) {
case /task source$/i.test(matched):
case /task\s+source$/i.test(matched):
type = "task-source";
break;
}
Expand Down
4 changes: 3 additions & 1 deletion tests/spec/core/dfn-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ describe("Core — Definitions", () => {
</p>
<p id="links">
<a>I'm a task source</a>
[=I'm a Task Source=]
[=I'm a
Task
Source=]
</p>
</section>
`;
Expand Down

0 comments on commit faed82e

Please sign in to comment.