Skip to content

Better handling code block #14

Closed

Description

@yujonglee

https://github.com/letmutex/htmd/blob/main/src/element_handler/code.rs

Seems like built-in code tag handler only consider class attribute in code tag.

However, for both prismjs and highlightjs, the actual structure is

<pre class="language-rs"><code>CONTENT</code></pre>

To support this, I guess we need to modify handler interface.

Activity

  1. letmutex commented on Jun 27, 2024

    @letmutex
    Owner

    Thanks for reporting this.

    It should not be difficult to access the attrs of the parent node using the current tag handler, will open a PR later.

  2. letmutex commented on Jun 27, 2024

    @letmutex
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions