Skip to content

Commit

Permalink
Fix linkReferenceDefinitionPattern (#532)
Browse files Browse the repository at this point in the history
* Fix linkReferenceDefinitionPattern

* Fix `linkReferenceDefinitionPattern` again

Just made a stupid mistake
  • Loading branch information
chenzhiguang authored Apr 19, 2023
1 parent d437c85 commit 86ebc2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/patterns.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ final htmlCharactersPattern = RegExp(
);

/// A line starts with `[`.
final linkReferenceDefinitionPattern = RegExp(r'[ ]{0,3}\[');
final linkReferenceDefinitionPattern = RegExp(r'^[ ]{0,3}\[');
8 changes: 8 additions & 0 deletions test/extensions/tables.unit
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,11 @@ too | many | cells | here
</tr>
</tbody>
</table>
>>> issue #531
| A | [B](url) | C |
|---|---|
| a | b | c |
<<<
<p>| A | <a href="url">B</a> | C |
|---|---|
| a | b | c |</p>

0 comments on commit 86ebc2c

Please sign in to comment.