-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Description
Consider:
1. **foo**
1. _bar_
We would expect to see the bold and italic styling applied:
- foo
- bar
However, the styles are not applied. I cannot see anything in listitem which would apply them (
Lines 155 to 188 in 7eb3cd3
| Renderer.prototype.listitem = function (text) { | |
| if (typeof text === 'object') { | |
| const item = text; | |
| text = ''; | |
| if (item.task) { | |
| const checkbox = this.checkbox({ checked: !!item.checked }); | |
| if (item.loose) { | |
| if (item.tokens.length > 0 && item.tokens[0].type === 'paragraph') { | |
| item.tokens[0].text = checkbox + ' ' + item.tokens[0].text; | |
| if ( | |
| item.tokens[0].tokens && | |
| item.tokens[0].tokens.length > 0 && | |
| item.tokens[0].tokens[0].type === 'text' | |
| ) { | |
| item.tokens[0].tokens[0].text = | |
| checkbox + ' ' + item.tokens[0].tokens[0].text; | |
| } | |
| } else { | |
| item.tokens.unshift({ | |
| type: 'text', | |
| raw: checkbox + ' ', | |
| text: checkbox + ' ' | |
| }); | |
| } | |
| } else { | |
| text += checkbox + ' '; | |
| } | |
| } | |
| text += this.parser.parse(item.tokens, !!item.loose); | |
| } | |
| var transform = compose(this.o.listitem, this.transform); | |
| var isNested = text.indexOf('\n') !== -1; | |
| if (isNested) text = text.trim(); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels