Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/advanced-rest-client/highlight

A set of tools to work with markdown content and other syntax highlighting.
https://github.com/advanced-rest-client/highlight

Last synced: about 1 month ago
JSON representation

A set of tools to work with markdown content and other syntax highlighting.

Awesome Lists containing this project

README

        

# highlight

A set of tools to work with markdown content and other syntax highlighting.

This library replaces the old modules of:

- @advanced-rest-client/markdown-styles
- @advanced-rest-client/arc-marked
- @advanced-rest-client/prism-highlight

[![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/highlight.svg)](https://www.npmjs.com/package/@advanced-rest-client/highlight)

[![Tests and publishing](https://github.com/advanced-rest-client/highlight/actions/workflows/deployment.yml/badge.svg)](https://github.com/advanced-rest-client/highlight/actions/workflows/deployment.yml)

## Usage

### Installation

```sh
npm install --save @advanced-rest-client/highlight
```

### MarkdownStyles

This should be used whenever the `arc-marked` is used.

```javascript
import { MarkdownStyles } from '@advanced-rest-client/highlight';

export default class AnElement extends LitElement {
get styles() {
return [
MarkdownStyles,
css`
...
`
];
}
...
}
```

### arc-marked

An element that specializes in markdown rendering.

```html

```

```html



## Markdown Renderer

...

```

## Development

```sh
git clone https://github.com/advanced-rest-client/arc-headers
cd arc-headers
npm install
```

### Running the demo locally

```sh
npm start
```

### Running the tests

```sh
npm test
```