Modules§
- Public facing REST API for bobashare
- Handler to serve static files
- Frontend views (as opposed to REST API)
Structs§
- A struct that contains all the state and config for bobashare
Enums§
- Errors for
render_markdown_with_syntax_set
- Error encountered in converting string to duration values with
str_to_duration
Constants§
ClassStyle
used forsyntect
highlighting- Prefix for CSS classes used for
syntect
highlighting - Options used for
pulldown_cmark
rendering
Functions§
- Take the requested expiry, and make sure it’s within the maximum expiry.
- Render markdown into HTML, including syntax highlighting for code blocks using
syntect
. - Take a string with a simple duration format (single number followed by unit) and output a
StdDuration
. Accepts durations in minutes (m), hours (h), days (d), weeks (w), months (mon), or years (y).