Skip to content

Is this a bug of util.highlight ? #774

@wuchong

Description

@wuchong

When I update hexo to 2.8+ , I find some code block has problems.

If there are a lot of lines in the code block, it will have a bank on the top and bottom . like this:

0805103951

If we have multiline comment , it will only parse the first line. The html like this:

<pre>
<div class="line"><span class="comment">/*</span></div>
<div class="line"> * Integer 类中的 parseInt 函数</div>
<div class="line"> * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.</div><div class="line"> */</div>
...
</pre>

I find #687 wrap each line with <div class="line">

Is this a bug ? Or do I need to modify my theme css? I use jacman for my theme. @tommy351

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions