BEGIN { int depth = 0; print("\n"); print("\n"); } enter section { depth += 1; } leave section { depth -= 1; } enter atx_heading { print(""); } leave atx_heading { print("\n"); } enter paragraph { print("

"); } leave paragraph { print("

\n"); } enter list { print("
    "); } leave list { print("
\n"); } enter list_item { print("
  • "); } leave list_item { print("
  • \n"); } enter fenced_code_block { print("
    ");
    }
    leave fenced_code_block {
        print("
    \n"); } enter inline { print(text(node)); } enter code_fence_content { print(text(node)); } END { print("\n"); print("\n"); }