mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 09:19:34 +05:30
feat(flowchart): mermaid translator (flowchart TD, all 5 shapes, 3 edge kinds)
Pure Mermaid translator: graph (nodes + edges) -> flowchart TD source.
5 node kinds (process/decision/terminator/subroutine/document) ->
Mermaid syntax ([..], {..}, ([..]), [[..]], [/../]).
3 edge kinds (solid/dotted/thick) -> Mermaid arrows (-->, -.->, ==>).
Label escaping: double quotes become #quot;, newlines become literal \n.
Also moves tests/fixtures per-test dirs to fixtures-epub / fixtures-css
so the shared tests/fixtures/ stays available for snapshot fixtures.
Amit Haridas
This commit is contained in:
@@ -4,7 +4,8 @@ const JSZip = require('jszip');
|
||||
const EpubFontEmbedder = require('../src/main/EpubFontEmbedder');
|
||||
|
||||
describe('EpubFontEmbedder.patchManifest', () => {
|
||||
const fixturesDir = path.join(__dirname, 'fixtures');
|
||||
// Per-test fixture dir (not the shared tests/fixtures/ used by snapshot fixtures).
|
||||
const fixturesDir = path.join(__dirname, 'fixtures-epub');
|
||||
const epubPath = path.join(fixturesDir, 'fake.epub');
|
||||
const fontPath = path.join(fixturesDir, 'fake.ttf');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user