Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indented code fences are not recognised #401

Open
brendanzab opened this issue Oct 19, 2022 · 0 comments
Open

Indented code fences are not recognised #401

brendanzab opened this issue Oct 19, 2022 · 0 comments

Comments

@brendanzab
Copy link

When attempting to use MDX to test this README.md, I noticed it wasn't picking up the following code fence:

- A-Normal Form

  This defines an intermediate binding for each computation. This is close to
  the [three-address code] found in many optimising compilers.

  ```sh
  $ arithcond compile --target=anf <<< "let x := 3 * 4; if x = 5 then (let y := 3 + x; 8 - y / 4) else x + 8"
  let e0 := mul 3 4;
  let e1 := eq e0 5;
  if e1 then
    let e2 := add 3 e0;
    let e3 := div e2 4;
    sub 8 e3
  else
    add e0 8
  ```

Dedenting the code fence seemed to fix things. In the interim I’ll rework the document to get it to work, but I thought it would be good to record the edge-case!

(Note that I had to switch to from command to sh from what is on that repo - other tools like trycmd use command for these kinds of tests, so I was in the habit of using that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant