You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A self-documenting literate programming converter written in F# that transpiles to Python via Fable.Python. The converter processes `.fsx` files with embedded Markdown comments and outputs GitHub-flavored Markdown suitable for publishing on platforms like Hashnode.
6
+
7
+
**The meta twist:** The converter's source code IS the blog post - it parses itself to generate the Markdown that documents how it works.
8
+
9
+
## Goals
10
+
11
+
1. Create a practical tool for converting F# literate scripts to publishable Markdown
12
+
2. Demonstrate Fable.Python capabilities through a real-world example
13
+
3. Produce a blog post about Fable.Python that dogfoods the toolchain
14
+
4. Keep it minimal - ship v1, iterate later
15
+
16
+
## Input Format
17
+
18
+
F# script files (`.fsx`) using FSharp.Formatting literate conventions:
19
+
20
+
```fsharp
21
+
(**
22
+
# This is Markdown
23
+
24
+
Regular markdown content goes here between comment delimiters.
25
+
*)
26
+
27
+
let code = "This becomes a fenced code block"
28
+
29
+
(*** hide ***)
30
+
let hiddenSetup = "This code is excluded from output"
31
+
32
+
(** More markdown explaining the next section *)
33
+
34
+
let moreCode () =
35
+
printfn "visible in output"
36
+
```
37
+
38
+
## Output Format
39
+
40
+
GitHub-flavored Markdown with fenced code blocks:
41
+
42
+
````markdown
43
+
# This is Markdown
44
+
45
+
Regular markdown content goes here between comment delimiters.
0 commit comments