You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@beoe/rehype-gnuplot

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beoe/rehype-gnuplot - npm Package Compare versions

Comparing version

to
0.3.0

5

package.json
{
"name": "@beoe/rehype-gnuplot",
"type": "module",
"version": "0.2.0",
"version": "0.3.0",
"description": "rehype gnuplot plugin",

@@ -18,2 +18,3 @@ "keywords": [

"sideEffects": false,
"homepage": "https://beoe.stereobooster.com/diagrams/gnuplot/",
"exports": {

@@ -32,3 +33,3 @@ "types": "./dist/index.d.js",

"@beoe/rehype-code-hook": "0.1.0",
"@beoe/rehype-code-hook-img": "0.1.0"
"@beoe/rehype-code-hook-img": "0.3.0"
},

@@ -35,0 +36,0 @@ "devDependencies": {

21

README.md
# @dat/rehype-gnuplot
Rehype plugin to generate [Gnuplot](https://gnuplot.sourceforge.net/) diagrams (as inline SVGs) in place of code fences. This:
Rehype plugin to generate [Gnuplot](https://gnuplot.sourceforge.net/) diagrams in place of code fences. This:

@@ -36,19 +36,2 @@ ````md

It support caching the same way as [@beoe/rehype-code-hook](/packages/rehype-code-hook/) does.
## Tips
### XKCD-style
You can create XKCD-style plots with this [snippet](https://rfonseca.github.io/xkcd-gnuplot/). In order for it to work as SVG you need to changed following lines:
```diff
- set term postscript eps font 'HumorSans' fontfile 'Humor-Sans.pfa' 22
- set output 'xkcd.eps'
+ set terminal svg enhanced font "HumorSans,Patrick Hand,Chalkboard,Comic Sans MS,18"
```
You may use any font you like (don't forget to load it in HTML), for example:
- [Humor Sans](https://github.com/shreyankg/xkcd-desktop/blob/master/Humor-Sans.ttf)
- [Patrick Hand](https://fonts.google.com/specimen/Patrick+Hand)
[Online documentation](https://beoe.stereobooster.com/diagrams/gnuplot/) provides more details.