Unable to render \${...} in code block
See original GitHub issueSubject 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:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Thanks for the clarification @yangshun and @omry! That makes sense, PRs are welcome!