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

Latest commit

 

History

History
31 lines (22 loc) · 533 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 533 Bytes

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