You've already forked joplin
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:
@@ -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',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user