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.
- Host: GitHub
- URL: https://github.com/magiclen/html-outliner
- Owner: magiclen
- License: mit
- Created: 2020-05-17T16:30:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T05:44:55.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T17:55:19.449Z (about 1 year ago)
- Topics: html, outline, rust
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HTML Outliner
====================
[](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)