https://github.com/lemaetech/pp_html
[Unreleased] Ocaml library to pretty print/format HTML5. See notes in README.
https://github.com/lemaetech/pp_html
formatter html5 pretty-printer
Last synced: 2 months ago
JSON representation
[Unreleased] Ocaml library to pretty print/format HTML5. See notes in README.
- Host: GitHub
- URL: https://github.com/lemaetech/pp_html
- Owner: lemaetech
- License: mpl-2.0
- Created: 2020-11-26T18:04:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T14:15:53.000Z (over 4 years ago)
- Last Synced: 2024-08-16T16:22:23.493Z (about 1 year ago)
- Topics: formatter, html5, pretty-printer
- Language: OCaml
- Homepage: https://lemaetech.co.uk/pp_html/
- Size: 72.3 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Pretty-printer, formatter for HTML5 (Unreleased and not production ready)
Note - The parser hasn't been validated against HTML5 RFC.
## Example
```ocaml
let () =
let html =
{|
Hello World!
|} in
Pp_html.parse html
|> Pp_html.pp ~indent:4 Format.std_formatter
;;
```
The above code produces the following formatted HTML5.
```html
Hello World!
```