aboutsummaryrefslogtreecommitdiffstats
path: root/article.md
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-02-06 16:26:36 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2024-02-08 09:02:42 +0200
commit4e322c636bbc3e8064342931fe604bc6ddbe5f4e (patch)
treeb75cb0bf167b8c194f9e5b62e0ce81c694156303 /article.md
parent9e8ff330d473ff5b540bbb9c6e66be4ac05ede81 (diff)
Implement basic site generation from .md
Diffstat (limited to 'article.md')
-rw-r--r--article.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/article.md b/article.md
new file mode 100644
index 0000000..bc0d9db
--- /dev/null
+++ b/article.md
@@ -0,0 +1,42 @@
+# Article title
+
+Some text
+
+[Link text](http://example.com)
+
+Paragraph with inline _Python code_: `%lang py% import foo`, wonder what this looks like.
+
+## Subtitle
+
+ %lang c%
+ int main() {
+ return 0;
+ }
+
+### Let's try a Lisp
+
+ %lang scm%
+ (define foo (+ 1 2 3 4))
+
+### And Rust
+
+ %lang rs%
+ const STARTING_MISSILES: i32 = 8;
+ const READY_AMOUNT: i32 = 2;
+
+ fn main() {
+ let mut missiles: i32 = STARTING_MISSILES;
+ let ready: i32 = READY_AMOUNT;
+ println!("Firing {} of my {} missiles...", ready, missiles);
+ missiles = missiles - ready;
+ println!("{} missiles left", missiles);
+ }
+
+## client side jäsä (juuso commission)
+
+ %lang js%
+ alert("beenis");
+
+> This is a quote
+>
+> > Alas poor Yorick