Skip to content

Support languages other than Rust for "Hiding code lines"Β #1475

Open
@ZeWaka

Description

@ZeWaka

Note: This is not clearly specified in the documentation that it only works for Rust as well.

Here is the line of code that causes this behavior:

if classes.contains("language-rust") {
if (!classes.contains("ignore")

Therefore, since the language is not Rust, we execute

} else {
// not language-rust, so no-op
text.to_owned()
instead, leading us to not call hide_lines.

This might just be an oversight.
However, I know some languages would not be happy with this, as they use # for comments.

Therefore, a proper fix for this (imo) would be a configurable BORING_LINES_REGEX, and remove the language restriction.

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