AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
import { common, createLowlight } from "lowlight";
export const createCodeBlockLowlight = () => {
const lowlight = createLowlight(common);
return {
...lowlight,
// TipTap calls highlightAuto for unregistered languages, including Mermaid
// and our front-matter node. Guessing across every grammar blocks note
// switching on the main thread. Keep their text and language untouched;
// only omit syntax decorations when the language is not supported.
highlightAuto: (value: string) => lowlight.highlight("plaintext", value),
};
};