inside the quote — the old parser collapsed these into one
+ const paras = html.match(/
(.*?)<\/blockquote>/s)[1].match(//g) || [];
+ assert.equal(paras.length, 2);
+ });
+
+ test('a single-paragraph blockquote still renders one
', () => {
+ const html = markdownToHtml('> Bare ett avsnitt her.');
+ const paras = html.match(/
(.*?)<\/blockquote>/s)[1].match(//g) || [];
+ assert.equal(paras.length, 1);
+ });
+});
+
+describe('markdownToHtml — FIGUR→SVG (N3.5 MR-F8)', () => {
+ test('a FIGUR blockquote with no matching SVG falls back to a plain blockquote', () => {
+ const html = markdownToHtml('> **[FIGUR 9 — «finnes ikke»]**');
+ assert.match(html, /
/);
+ assert.doesNotMatch(html, /', () => {
+ const prev = process.cwd();
+ process.chdir(path.join(__dirname, 'fixtures', 'figur-serie'));
+ try {
+ const html = markdownToHtml('> **[FIGUR 1 — «Demo-figur»]**');
+ assert.match(html, //);
+ assert.match(html, /