question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to render \${...} in code block

See original GitHub issue

Subject of the issue

Feel free to close if this is not a bug (or bug of some other library).

I’m trying to render the following

```
python command subdir=\${model.nb_layers}
```

but it crashes because MDX tries to evaluate the contents of the ${...}. I suspect some double escaping occurs and the problem (if indeed a problem) lies in this line. Or it could be a remark issue. Not entirely sure which.

I also posted on Spectrum here because I wasn’t sure whether this was a bug.

Your environment

  • OS: macOS 10.15.1
  • Packages: @mdx-js/mdx@1.15.1
  • Env: Node 8.16.2, Yarn 1.16.0

Steps to reproduce

Repo here - https://github.com/yangshun/hydra/blame/master/website/docs/configure_hydra/workdir.md#L67-L69

Expected behaviour

Renders fine. It renders ok for GFM.

Actual behaviour

MDX tries to evaluate the contents of the ${...}. I suspect some double escaping occurs.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bravo-kernelcommented, Mar 23, 2020

I placed a $100 bounty for the person whose pull request for fixing this issue gets merged. Add to or claim the bounty here https://www.bountysource.com/issues/86803859-unable-to-render-in-code-block.

2reactions
ChristianMurphycommented, Feb 3, 2020

Thanks for the clarification @yangshun and @omry! That makes sense, PRs are welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Code Block" on GitHub Pages is not rendering and throws an ...
I copied the README.md file and renamed it index.md. The modified repo then began to fail on cmia-camera.md with a particular line and...
Read more >
why won't github pages render my code blocks correctly?
I'm using the https://github.com/mmistakes/so-simple-theme which is really nice. It seems like last night github was correctly highlighting my ...
Read more >
Jupyter Notebook Not Rendering on GitHub? Here's a Simple ...
It's just an issue on GitHub's end because it's unable to render a preview of the file. After much research, it seems that...
Read more >
Solutions to “Jupyter Notebook Not Rendering on GitHub ...
Three tools to overcome the Notebook doesn't render on GitHub problem. ... Unable to render code block. Jupyter Notebook not rendering ...
Read more >
Unable to render to PDF files - IBM
Error code: 0x80004005 (16389) Source: CPDFRender::Render File: .\PDFRender.cpp: 81. Description: Unable to render document ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found