Skip to content

Option to use in nodejs environment (without window) #96

Open
@maor-benami

Description

@maor-benami

highlight.js can be used on server side to change code tags

line-numbers plugin depends on window

https://stackoverflow.com/questions/48843806/how-to-use-npm-marked-with-highlightjs

Activity

skoropadas

skoropadas commented on Jun 12, 2023

@skoropadas

For those who are looking for the functionality of adding lines on the Node.js side can look at the plugin for rehype in my repository, it splits into lines and wraps the content created by rehype-highlight in span.line which in the future you can use to create numbered lines.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Option to use in nodejs environment (without window) · Issue #96 · wcoder/highlightjs-line-numbers.js