BugdrLog in
All problems
EasyJavaScriptBackend Engineer · cli · javascript · markdown · parsing

Markdown script fenced code block support

★ 0.0 (0 ratings)30 min0 engineers solved this

Your assignment

This is a JavaScript toolkit for writing scripts. It provides a global $ template tag for running shell commands, helpers such as echo and fs wrappers, and a CLI that runs a script file given on the command line. The CLI accepts plain JavaScript, ES modules, and Markdown files. For Markdown, the CLI converts the document into a JavaScript module: fenced js blocks become code, fenced sh or bash blocks become shell commands run through $, indented blocks become code, and all prose becomes comments. The converted module is written next to the source file, imported, and then removed. The CLI source lives in src/cli.ts and is compiled into build/ before the tests run.

What the team is seeing

incident log
When I run my Markdown tutorial as a script, some of the example code blocks never execute and their output is missing. Other code blocks in the same file run fine.

Acceptance checks 1

  • Check 1

Discussion is locked — log in and complete this problem to join the discussion and rate your experience.