Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

dogbin/highlight-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

highlight-server

Super simple highlight.js server.

Endpoints

Post to /highlight with a json body like this:

{
    "lang": "md",
    "content": "#Test\n\nJust a simple markdown test"
}

lang is optional, and the server will try to detect the language if none is supplied

The server will return a result in the same format:

{
    "lang": "md",
    "content": "<span class=\"hljs-section\"># Test</span>\n\nJust a simple markdown test"
}

Deploying

docker run dogbin/highlight-server

About

Super simple highlight.js server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published