summary refs log tree commit diff
path: root/Cheat sheets/Commands.md
diff options
context:
space:
mode:
Diffstat (limited to 'Cheat sheets/Commands.md')
-rw-r--r--Cheat sheets/Commands.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/Cheat sheets/Commands.md b/Cheat sheets/Commands.md
new file mode 100644
index 0000000..818710f
--- /dev/null
+++ b/Cheat sheets/Commands.md
@@ -0,0 +1,19 @@
+---
+description: Handy commands i use on my Linux distro machines
+created: 2024-01-01
+---
+
+
+## Convert markdown to HTML
+e.g. to preview a markdown file
+Reqires [python-markdown](https://python-markdown.github.io/install/)
+
+```bash
+python3 -m markdown README.md > /tmp/README.html
+```
+
+To load extensions like code blocks:
+```bash
+python3 -m markdown -x fenced_code -x codehilite -x tables README.md > /tmp/README.html
+```
+