mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 18:24:33 +01:00
test: Change emphasis to em
This commit is contained in:
@@ -36,9 +36,9 @@ Here is a line *with an italic* section`;
|
|||||||
{ content: 'is', type: 'normal' },
|
{ content: 'is', type: 'normal' },
|
||||||
{ content: 'a', type: 'normal' },
|
{ content: 'a', type: 'normal' },
|
||||||
{ content: 'line', type: 'normal' },
|
{ content: 'line', type: 'normal' },
|
||||||
{ content: 'with', type: 'emphasis' },
|
{ content: 'with', type: 'em' },
|
||||||
{ content: 'an', type: 'emphasis' },
|
{ content: 'an', type: 'em' },
|
||||||
{ content: 'italic', type: 'emphasis' },
|
{ content: 'italic', type: 'em' },
|
||||||
{ content: 'section', type: 'normal' },
|
{ content: 'section', type: 'normal' },
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
@@ -142,7 +142,7 @@ test('markdownToLines - Only italic formatting', () => {
|
|||||||
{ content: 'This', type: 'normal' },
|
{ content: 'This', type: 'normal' },
|
||||||
{ content: 'is', type: 'normal' },
|
{ content: 'is', type: 'normal' },
|
||||||
{ content: 'an', type: 'normal' },
|
{ content: 'an', type: 'normal' },
|
||||||
{ content: 'italic', type: 'emphasis' },
|
{ content: 'italic', type: 'em' },
|
||||||
{ content: 'test', type: 'normal' },
|
{ content: 'test', type: 'normal' },
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
@@ -155,7 +155,7 @@ it('markdownToLines - Mixed formatting', () => {
|
|||||||
let input = `*Italic* and **bold** formatting`;
|
let input = `*Italic* and **bold** formatting`;
|
||||||
let expected = [
|
let expected = [
|
||||||
[
|
[
|
||||||
{ content: 'Italic', type: 'emphasis' },
|
{ content: 'Italic', type: 'em' },
|
||||||
{ content: 'and', type: 'normal' },
|
{ content: 'and', type: 'normal' },
|
||||||
{ content: 'bold', type: 'strong' },
|
{ content: 'bold', type: 'strong' },
|
||||||
{ content: 'formatting', type: 'normal' },
|
{ content: 'formatting', type: 'normal' },
|
||||||
@@ -166,9 +166,9 @@ it('markdownToLines - Mixed formatting', () => {
|
|||||||
input = `*Italic with space* and **bold ws** formatting`;
|
input = `*Italic with space* and **bold ws** formatting`;
|
||||||
expected = [
|
expected = [
|
||||||
[
|
[
|
||||||
{ content: 'Italic', type: 'emphasis' },
|
{ content: 'Italic', type: 'em' },
|
||||||
{ content: 'with', type: 'emphasis' },
|
{ content: 'with', type: 'em' },
|
||||||
{ content: 'space', type: 'emphasis' },
|
{ content: 'space', type: 'em' },
|
||||||
{ content: 'and', type: 'normal' },
|
{ content: 'and', type: 'normal' },
|
||||||
{ content: 'bold', type: 'strong' },
|
{ content: 'bold', type: 'strong' },
|
||||||
{ content: 'ws', type: 'strong' },
|
{ content: 'ws', type: 'strong' },
|
||||||
@@ -190,9 +190,9 @@ Word!`;
|
|||||||
{ content: 'the', type: 'strong' },
|
{ content: 'the', type: 'strong' },
|
||||||
{ content: 'hog...', type: 'normal' },
|
{ content: 'hog...', type: 'normal' },
|
||||||
{ content: 'a', type: 'normal' },
|
{ content: 'a', type: 'normal' },
|
||||||
{ content: 'very', type: 'emphasis' },
|
{ content: 'very', type: 'em' },
|
||||||
{ content: 'long', type: 'emphasis' },
|
{ content: 'long', type: 'em' },
|
||||||
{ content: 'text', type: 'emphasis' },
|
{ content: 'text', type: 'em' },
|
||||||
{ content: 'about', type: 'normal' },
|
{ content: 'about', type: 'normal' },
|
||||||
{ content: 'it', type: 'normal' },
|
{ content: 'it', type: 'normal' },
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user