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

https://github.com/magiclen/html-outliner

Outline HTML documents for better SEO.
https://github.com/magiclen/html-outliner

html outline rust

Last synced: about 1 year ago
JSON representation

Outline HTML documents for better SEO.

Awesome Lists containing this project

README

          

HTML Outliner
====================

[![CI](https://github.com/magiclen/html-outliner/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/html-outliner/actions/workflows/ci.yml)

Outline HTML documents for better SEO.

## Examples

```rust
use html_outliner::Outline;

const MAX_DEPTH: usize = 50;

let outline = Outline::parse_html(r"

Header Top


Header 1


Header 2


Header 3


Header 4


Header 5

Header 6

", MAX_DEPTH);

println!("{}", outline);

/*
1. Header Top
2. Header 1
1. Header 2
1. Header 3
1. Header 4
1. Header 5
1. Header 6
*/
```

## Crates.io

https://crates.io/crates/html-outliner

## Documentation

https://docs.rs/html-outliner

## License

[MIT](LICENSE)