mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
MD036 should not trigger for emphasized list items (fixes #26).
This commit is contained in:
parent
a2df7742c6
commit
ce9ec8fb5e
3 changed files with 46 additions and 0 deletions
|
@ -803,6 +803,12 @@ module.exports = [
|
||||||
return inBlockquote;
|
return inBlockquote;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} else if (token.type === "list_item_open") {
|
||||||
|
return function inListItem(t) {
|
||||||
|
if (t.type !== "list_item_close") {
|
||||||
|
return inListItem;
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var state = base;
|
var state = base;
|
||||||
|
|
23
test/emphasis-not-header-in-blockquote.md
Normal file
23
test/emphasis-not-header-in-blockquote.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Heading
|
||||||
|
|
||||||
|
> _Text_
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> _Text text text_
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> *Text*
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> *Text text text*
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> **Text**
|
||||||
|
|
||||||
|
Text
|
||||||
|
|
||||||
|
> **Text text text**
|
17
test/md036-emphasis-as-header.md
Normal file
17
test/md036-emphasis-as-header.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Simplified examples from issue #26
|
||||||
|
|
||||||
|
* Item
|
||||||
|
* **Emphasized item**
|
||||||
|
* Item
|
||||||
|
|
||||||
|
_Emphasis as header {MD036}_
|
||||||
|
|
||||||
|
1. **Emphasized item**
|
||||||
|
* Item
|
||||||
|
* Item
|
||||||
|
1. **Emphasized item**
|
||||||
|
* Item
|
||||||
|
* **Emphasized item**
|
||||||
|
* Item
|
||||||
|
|
||||||
|
**Emphasis as header {MD036}**
|
Loading…
Add table
Add a link
Reference in a new issue