About Markdown parser code sample
You can write posts or pages in Markdown. Markdown is parse by Marked.
The sample rendering is following.
plain
italic
bold
code
strikethrough
plain italic bold code
strikethrough
extreme long inline code ......................................................................
Recommends to start Markdown headings from h2 because it render the blog title as h1.
blockquote
blockquote
blockquote blockquote
codeblock
module App
open StaticWebGenerator
render
{ stage = dev
lang = "ja"
siteName = "Blog Fable"
description = "A small Fable app project to generate static pages"
siteUrl = "https://krymtkts.github.io"
pathRoot = "/blog-fable"
copyright = "2023 krymtkts"
favicon = "/img/favicon.ico"
highlightStyle = "node_modules/highlight.js/styles/base16/solarized-dark.min.css"
src = "contents"
dst = "docs"
posts = { root = "/posts"; title = "Posts" }
pages = { root = "/pages"; title = "Pages" }
tags = { root = "/tags"; title = "Tags" }
archives =
{ root = "/archives"
title = "Archives" }
images = "/img"
feedName = "feed"
additionalNavs =
[ { text = "About"
path = "/pages/about.html" } ]
timeZone = "Asia/Tokyo"
sitemap =
{ index = 1.0
archives = 0.8
tags = 0.8
posts = 0.9
pages = 0.8 } }
list
bullet list item a
level 2 task item 1
level 2 task item 2
level 3
level 4
ordered list
level 2 task item
level 3
level 4
level 2 item b
level 3
composition
ordered item 1
strikethrough
unordered item 1 has extreme long label text ......................................
unordered item 2 has extreme long label text ......................................
inline code
italic
bold
italic bold
blockquote
multiline
module App
open StaticWebGenerator
table
col1 | col2 | col3 | col4 |
---|---|---|---|
1 | 2 | 3 | 4 |
one | two | three | four |