1.2.4 • Published 5 months ago

markflow-svelte v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Markflow

Markflow is markdown content processing toolkit, extendable with custom processors and directives. Content is supposed to be a folder with markdown files under git control. Markdown files are parsed into AST with marked library and then transformed and rendered into HTML to be presented by Svelte components.

Metadata

Each file has metadata associated:

file: string; // file name
path: string; // file path
created?: string | Date;
created_ts?: number; // unix timestamp
modified?: string | Date;
modified_ts?: number;

author?: string; // git committer
slug?: string; // generated slug

title?: string; // see below
description?: string; // see below
skip?: boolean; // flag to ignore file (for drafts)
hero?: boolean; // flag to include file into top

Fields like created, modified and author are populated from git.

Code

Code blocks are rendered with shiki.

Front matter

Markdown file header allows overriding metadata:

# Title
field: value

Description

The first header goes into title, and the first paragraph into description fields.

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

5 months ago

1.1.11

5 months ago

1.1.10

5 months ago

1.1.9

5 months ago

1.1.8

7 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.5.0

7 months ago