mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 09:05:16 +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); }) ```