Syntax highlighting for fenced code blocks #185

Open
opened 2024-04-04 19:42:14 +00:00 by norrist · 1 comment
Contributor

https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting

Is it possible to preserve the language for fenced code blocks so the show notes would have syntax highlighting

```python

import time
print(time.now())
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting Is it possible to preserve the language for fenced code blocks so the show notes would have syntax highlighting ```md ```python import time print(time.now()) ```
Collaborator

This is a nice feature, however it is implemented (or was last time I looked) by lots of <span> and <div> tags. When the show arrives on the Internet Archive (IA) these are all stripped out.

In short, I disabled this feature because at the time the IA stripped all but the most basic HTML. I'd be happy to review it; the IA code is changed silently over time, so this might no longer be the case.

This is a nice feature, however it is implemented (or was last time I looked) by lots of `<span>` and `<div>` tags. When the show arrives on the Internet Archive (IA) these are all stripped out. In short, I disabled this feature because at the time the IA stripped all but the most basic HTML. I'd be happy to review it; the IA code is changed silently over time, so this might no longer be the case.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rho_n/hpr_generator#185
No description provided.