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

Generate (pre and) code elements instead of div, span #77

Closed
4 tasks done
wooorm opened this issue Aug 25, 2022 · 1 comment
Closed
4 tasks done

Generate (pre and) code elements instead of div, span #77

wooorm opened this issue Aug 25, 2022 · 1 comment
Labels
💪 phase/solved Post is done

Comments

@wooorm
Copy link
Member

wooorm commented Aug 25, 2022

Initial checklist

Affected packages and versions

all

Link to runnable example

No response

Steps to reproduce

examples in readme, all tests

Expected behavior

Use <code class="math math-inline">…</code> and <pre><code class="math math-display">…</code></pre> instead of spans and divs.

Likely even improved, use <code class="lang-math math-inline">…</code> and <pre><code class="lang-math math-display">…</code></pre>.
This is better because it means it would generate the same as:

```math
\sqrt{3}
```

Which is a good alternative to introducing a custom syntax, and GitHub says that they support it (although it doesn’t render for me here).

That second idea comes with another question though: does math-display and math-inline then still make sense?

Actual behavior

see examples in readme, all tests

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Aug 25, 2022
wooorm added a commit to syntax-tree/mdast-util-math that referenced this issue Oct 12, 2022
@wooorm wooorm closed this as completed in fc32531 Sep 18, 2023
@github-actions

This comment has been minimized.

@wooorm wooorm added the 💪 phase/solved Post is done label Sep 18, 2023
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 phase/solved Post is done
Development

No branches or pull requests

1 participant