fix: typo in Markdown Italic Parser (#64942)

This commit is contained in:
YC Wong
2026-01-02 00:15:45 +08:00
committed by GitHub
parent a58cad8e0d
commit 6ec4ac52c3
@@ -19,31 +19,31 @@ Note: The console may not display HTML tags in strings when logging messages. Ch
# --hints--
`parseItalic("*This is italic*")` should return `"<i>This is italic</i>"`.
`parseItalics("*This is italic*")` should return `"<i>This is italic</i>"`.
```js
assert.equal(parseItalics("*This is italic*"), "<i>This is italic</i>");
```
`parseItalic("_This is also italic_")` should return `"<i>This is also italic</i>"`.
`parseItalics("_This is also italic_")` should return `"<i>This is also italic</i>"`.
```js
assert.equal(parseItalics("_This is also italic_"), "<i>This is also italic</i>");
```
`parseItalic("*This is not italic *")` should return `"*This is not italic *"`.
`parseItalics("*This is not italic *")` should return `"*This is not italic *"`.
```js
assert.equal(parseItalics("*This is not italic *"), "*This is not italic *");
```
`parseItalic("_ This is also not italic_")` should return `"_ This is also not italic_"`.
`parseItalics("_ This is also not italic_")` should return `"_ This is also not italic_"`.
```js
assert.equal(parseItalics("_ This is also not italic_"), "_ This is also not italic_");
```
`parseItalic("The *quick* brown fox _jumps_ over the *lazy* dog.")` should return `"The <i>quick</i> brown fox <i>jumps</i> over the <i>lazy</i> dog."`.
`parseItalics("The *quick* brown fox _jumps_ over the *lazy* dog.")` should return `"The <i>quick</i> brown fox <i>jumps</i> over the <i>lazy</i> dog."`.
```js
assert.equal(parseItalics("The *quick* brown fox _jumps_ over the *lazy* dog."), "The <i>quick</i> brown fox <i>jumps</i> over the <i>lazy</i> dog.");