14 lines
1.0 KiB
JavaScript
14 lines
1.0 KiB
JavaScript
// C2-11a byte fixtures shared by the baseline measurement and regression tests.
|
|
export const WIKILINK_CASES = [
|
|
{ name: 'plain', text: '[[a]]\n', sources: ['[[a]]'] },
|
|
{ name: 'labelled', text: '[[a|b]]\n', sources: ['[[a|b]]'] },
|
|
{ name: 'heading target', text: '[[a#h]]\n', sources: ['[[a#h]]'] },
|
|
{ name: 'list item', text: '- [[a]]\n', sources: ['[[a]]'] },
|
|
{ name: 'next to front matter', text: '---\nrelated: "[[metadata]]"\n---\n\n[[a]]\n', sources: ['[[a]]'] },
|
|
{ name: 'heading block and combined label', text: '# See [[a#h|Title]]\n', sources: ['[[a#h|Title]]'] },
|
|
{ name: 'spaces, Unicode and adjacent links', text: 'See [[ Héllo there # A heading | a label ]][[next]]\n', sources: ['[[ Héllo there # A heading | a label ]]', '[[next]]'] },
|
|
{ name: 'reference-definition collision', text: '[[a]]\n\n[a]: u\n', sources: ['[[a]]'] },
|
|
{ name: 'inside an ordinary link', text: '[x [[a]]](u)\n', sources: ['[[a]]'] },
|
|
{ name: 'inert embed', text: '![[cover.png]]\n', sources: ['![[cover.png]]'] },
|
|
];
|