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

Handle codehilite elements with multiple classes #933

Open
PIG208 opened this issue Sep 9, 2024 · 1 comment
Open

Handle codehilite elements with multiple classes #933

PIG208 opened this issue Sep 9, 2024 · 1 comment
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents
Milestone

Comments

@PIG208
Copy link
Member

PIG208 commented Sep 9, 2024

It is totally possible for Pygments to generate HTML elements with more than one classes.

This is considered quite an edge case and only happens to some languages, such as PostgreSQL (see pygments/pygments#2780). It currently renders as an unimplemented feature whenever a code block contains tokens with more than one classes.

See a minimal example here.

HTML of the unsupported message:

<pre>
  <span></span>
  <code>
    <span class="s s-Name">"</span>
  </code>
</pre>
@PIG208 PIG208 added this to the Launch milestone Sep 9, 2024
@PIG208 PIG208 added the a-content Parsing and rendering Zulip HTML content, notably message contents label Sep 9, 2024
@PIG208
Copy link
Member Author

PIG208 commented Sep 12, 2024

Listed under #921.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents
Projects
Status: No status
Development

No branches or pull requests

1 participant