Skip to content

Instantly share code, notes, and snippets.

View umajho's full-sized avatar

Umaĵo umajho

View GitHub Profile
@umajho
umajho / draft.pegjs
Last active March 10, 2023 09:19
Markup 草稿
{{
import { h } from "snabbdom";
import he from "he"
import { buildList, intersperse } from "./helpers.ts";
function joinInlines(inlines, decodes = true) {
const [result, remStr] = inlines.reduce((acc, cur) => {
const [nodes, str] = acc