箋 Jian

A Wenyan Markdown language concept.

About

箋 Jian is a Wenyan Markdown language written in Haskell.

Features

  1. A combination of ancient Chinese book and modern Markdown.
  2. Concise syntax.

Heading

Headings are done through indentations. And every 2 indents adds on level of heading.

史記
  本紀
    秦始皇本紀第六

List

For ordered lists, just like in Markdown, they starts with numbers.

一、《論語》
二、《孟子》

As for unordered lists, they starts with .

〇李白
〇杜甫
〇白居易

Image

Images are cited like:

【有圖者「兩儀式」自「https://fgo.wiki/images/0/0b/215-卡面-1.png」來】

圖者,非嵌於文也,必取諸他處,故名之。

Link

For URLs:

【有扉者「Github」通「https://github.com」也】

超鏈接者,戶也,扉也,通八方,故以「扉」名之。

Comment

Just like comments in ancient books, they starts with 批:

批:註釋也。

Inline

Inlines are wrapped in 〔〕

有Haskell码曰:〔putStrLn "Hello"〕乃「安好」也。

Code Block

Code blocks are wrapped in 〔〔書以:[language] and 〕〕

Example:

〔〔書以:haskell
isShuzi :: Char -> Bool
isShuzi x = x `elem` "零一二三四五六七八九十百千萬"
〕〕

Something else

  1. Meowcolm024: GitHub
  2. 箋 Jian: GitHub
  3. Wenyan lang: Website/GitHub