diff --git a/Cargo.toml b/Cargo.toml index 3230d5b..4d40f78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pastebin" -version = "0.1.2" +version = "0.1.3" authors = ["Kaczanowski Mateusz "] edition = "2018" diff --git a/README.md b/README.md index a2f62f8..36f5618 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,19 @@ This is a rust version of Pastebin service with [rocksdb](https://rocksdb.org/) * GUI - the UI is a plain HTML with [Bootstrap JS](https://getbootstrap.com/), [jQuery](https://jquery.com/) and [prism.js](https://prismjs.com/) * Encryption - password-protected pastes are AES encrypted/decprypted in the browser via [CryptoJS](https://code.google.com/archive/p/crypto-js/) +### Plugins +The default configuration enables only one plugin, this is syntax highlighting through `prism.js`. This should be enough for p90 of the users but if you need extra features you might want to use the plugin system (`src/plugins`). + +To enable additional plugins, pass: +``` +--plugins prism +``` + +Currently supported: +* [prism.js](https://prismjs.com/) +* [mermaid.js](https://github.com/mermaid-js/mermaid) + + ## Usage Pastebin builds only with `rust-nightly` version and requires `llvm` compiler (rocksdb deps). To skip the build process, you can use the docker image.