Demo¶
A demonstration of all markwright extensions on a single page.
Highlight¶
Inline highlight: This has a highlighted word in it.
In inline code: Check config.timeout for the setting.
In a code block:
def process(data):
result = transform(data)
return result
Fence: Labels¶
app.py
from flask import Flask
app = Flask(__name__)
Fence: Secondary Labels¶
OutputServer started on port 8080
Fence: Environments¶
local-server.sh
ssh user@localhost
staging-server.sh
ssh deploy@staging.example.com
production-server.sh
ssh deploy@prod.example.com
Fence: Line Numbers¶
- from flask import Flask
-
- app = Flask(__name__)
-
- @app.route("/")
- def index():
- return "Hello, World!"
Fence: Command Prefix¶
- sudo apt update
- sudo apt install nginx
- systemctl start nginx
Fence: Super User Prefix¶
- systemctl restart nginx
- journalctl -u nginx -f
Fence: Custom Prefix¶
- SELECT * FROM users;
- SHOW DATABASES;
- USE production;
Fence: Full Combination¶
deploy.sh
- ssh root@192.168.1.1
- apt update && apt upgrade -y
- systemctl restart nginx
YouTube¶
CodePen¶
See the Pen vwPzeX by MattCowley (@MattCowley) on CodePen.