Block
There are several types of blocks of content at your disposal to enrich your content, such as:
Code
A wide variety of programming languages are supported with syntax highlighting. You can use the /
menu or toolbar to insert a code block, or you can also use markdown syntax ```:
#[derive(Debug)]
pub struct Product {
pub id: u64,
pub name: ProductName
}
#[derive(Debug)]
pub struct ProductName(String);
impl ProductName {
pub fn new(value: String) -> Self {
Self(value)
}
}
pub fn main() {
let my_product = Product { id: 1, name: ProductName::new("Demo".to_owned()) };
println!("{:?}", my_product);
}
Images
Insert photos and images from the menu or toolbar. Once inserted you can position and resize images in the document. All common image formats such as jpg, png, and svg are supported.
Quotes
Insert quote blocks to i.e. enclose cited content.
