BEGIN { int depth = 0; print("\n"); print("
\n"); } enter section { depth += 1; } leave section { depth -= 1; } enter atx_heading { print(""); } leave paragraph { print("
\n"); } enter list { print(""); } leave fenced_code_block { print("\n"); } enter inline { print(text(node)); } enter code_fence_content { print(text(node)); } END { print("\n"); print("\n"); }