Pastes should be written in a Markdown format following the CommonMark specification with some additions from GitHub Flavored Markdown.
Markdown is rendered on the server or the client, depending on whether encryption has been used or not.
- Server side: redcarpet
- Client side: markdown-it
- Filter HTML
- Nofollow on links
- Fenced code blocks
- Autolink
Paste can contain fenced code blocks with an optional language name:
module HelloWorld
def print_hello
puts "Hello, World!"
end
end
Syntax highlighting is done in the browser with highlight.js
Pastes can be encrypted in the browser with a passphrase before being sent to the server. The passphrase can be chosen by the user or randomly generated, in any case it is never communicated to the server.
Client side cryptography is provided by libsodium.js.
- Source: Web Cryptography API
- Function: Scrypt
- Parameters:
memlimit
: 16 MBopslimit
:memlimit
/ 32
- No more than 100 KB per paste
- No more than
n + 1
pastes per IP address in10^n
seconds forn
in[0..3]
Copyright (c) 2017-2018 Vincent Ollivier. Released under MIT.