Code
Highlighted code with titles and line numbers, code groups and diagrams.
npm installexport default {
site: 'docsheaf',
sections: ['docs', 'developers', 'changelog'],
};This block wraps long lines instead of scrolling them sideways, which suits prose-like output such as logs and error messages that run on and on.Code group#
One sample in several languages, as tabs:
curl https://petstore3.swagger.io/api/v3/store/inventoryconst res = await fetch('https://petstore3.swagger.io/api/v3/store/inventory');
console.log(await res.json());import requests
print(requests.get("https://petstore3.swagger.io/api/v3/store/inventory").json())Diagrams#
A mermaid code block is drawn as a diagram:
flowchart LR Draft --> Review --> Publish
Was this helpful?
Last updated
View as Markdown