Skip to content

Allow use of <pre><code> tags instead of <div hljs> #75

@DavidZemon

Description

@DavidZemon

Can you please allow using the hljs directive inside a <pre> or <code> tag instead of requiring it inside <div>? When I do drop it in one of those, I get double boxes around my code in the rendered page.

<li>Multi-line comments are marked with <code>/*</code> and <code>*/</code>
<pre><code hljs class="cpp">/*
 A multi-line comment!
 */</code></pre>

double_box

<li>Multi-line comments are marked with <code>/*</code> and <code>*/</code>
<div hljs class="cpp">/*
 A multi-line comment!
 */</div>

div_only

If this is something you'd rather not do for everyone, I'd be fine making the code change to my local copy of angular-highlightjs.js, but I don't know where to start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions