mirror of
https://github.com/discourse/discourse.git
synced 2025-03-11 12:55:52 +08:00

`parseAsync` allows to parse a block of markdown into tokens. Usage: ```javascript import { parseAsync } from "discourse/lib/text"; // ... await parseAsync("**test**").then((tokens) => { console.log(tokens); }) ```