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

code in markdown fences has different widths, could use Codemirror? #366

Closed
sritchie opened this issue Dec 21, 2022 · 1 comment
Closed
Assignees

Comments

@sritchie
Copy link
Collaborator

Moved over from a Slack conversation:

I noticed that if embedded code blocks inside of a markdown code fence have different width than a code block… and maybe syntax highlighting is not working?

For example, on https://jsxgraph.mentat.org/ note the different widths between the code fence on top and clojure forms below:

image

Can we tune this at all?

Re codemirror:

@zampino noted "yeah, fenced or indented code blocks in markdown are rendered with the default code viewer (hence with clojure syntax) but with the width of prose. Now that we have stateless syntax highlighting we could try to load codemirror language support lazily at least for known languages."

@mk
Copy link
Member

mk commented Feb 8, 2023

Let's try to make them look the same but have a Code Listing: Clojure label.

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

3 participants