From efad02d9a046bd3ade195a1e4f71e4d293e344f1 Mon Sep 17 00:00:00 2001 From: DB Date: Sun, 31 May 2026 13:25:29 -0700 Subject: [PATCH] Add Node.js usage example to README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 60f0b28bc0..8e343a4eb7 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,14 @@ $ cat hello.html $ marked --help ``` +**Node.js** + +```js +import { marked } from 'marked'; +const html = marked.parse('# Marked in Node.js'); +console.log(html); +``` + **Browser** ```html