1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Doc: Fixed outdated joplin/renderer package README.md (#12346)

This commit is contained in:
shawnzhang31
2025-05-28 00:18:32 +08:00
committed by GitHub
parent 16ebff78b4
commit d1cd8e9db4

View File

@@ -4,14 +4,14 @@ This is the renderer used by [Joplin](https://github.com/laurent22/joplin) to re
## Installation ## Installation
npm i -s joplin-renderer npm i @joplin/renderer
Certain plugins require additional assets like CSS, fonts, etc. These assets are in the `/assets` directory and should be copied to wherever the application can find them at runtime. Certain plugins require additional assets like CSS, fonts, etc. These assets are in the `/assets` directory and should be copied to wherever the application can find them at runtime.
## Usage ## Usage
```js ```js
const { MarkupToHtml } = require('joplin-renderer'); const { MarkupToHtml } = require('@joplin/renderer');
const options = {}; const options = {};
@@ -78,4 +78,4 @@ context.pluginAssets[PLUGIN_NAME] = [
mime: 'text/css', mime: 'text/css',
}, },
]; ];
``` ```