mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-03-01 16:20:15 +01:00
Update MD049/emphasis-style and MD050/strong-style to properly detect violations at the beginning and end of a line (fixes #1132).
This commit is contained in:
parent
f26df4743c
commit
64b9032b51
13 changed files with 436 additions and 18 deletions
|
|
@ -5,7 +5,7 @@
|
|||
const { addError, emphasisOrStrongStyleFor } = require("../helpers");
|
||||
const { filterByPredicate, tokenIfType } = require("../helpers/micromark.cjs");
|
||||
|
||||
const intrawordRe = /\w/;
|
||||
const intrawordRe = /^\w$/;
|
||||
|
||||
const impl =
|
||||
(params, onError, type, asterisk, underline, style = "consistent") => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue