MD036 should not trigger for emphasized list items (fixes #26).

This commit is contained in:
David Anson 2016-09-30 22:54:16 -07:00
parent a2df7742c6
commit ce9ec8fb5e
3 changed files with 46 additions and 0 deletions

View file

@ -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;

View file

@ -0,0 +1,23 @@
# Heading
> _Text_
Text
> _Text text text_
Text
> *Text*
Text
> *Text text text*
Text
> **Text**
Text
> **Text text text**

View 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}**