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:
@@ -3,7 +3,8 @@ const path = require('path');
|
||||
const ExportCss = require('../src/main/ExportCss');
|
||||
|
||||
describe('ExportCss.build', () => {
|
||||
const fakeFontPath = path.join(__dirname, 'fixtures', 'fake.woff2');
|
||||
// Per-test fixture dir (not the shared tests/fixtures/ used by snapshot fixtures).
|
||||
const fakeFontPath = path.join(__dirname, 'fixtures-css', 'fake.woff2');
|
||||
const fixture = Buffer.from('woff2-binary-fake-data');
|
||||
|
||||
beforeAll(() => {
|
||||
|
||||
Reference in New Issue
Block a user