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

Commit

Permalink
Merge pull request #188 from dart-lang/update_readme
Browse files Browse the repository at this point in the history
add markdown badges to the readme
  • Loading branch information
devoncarew authored Sep 29, 2022
2 parents d27b898 + 4185afd commit faafebf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
This is a pure Dart HTML5 parser.
It's a port of [html5lib](https://github.com/html5lib/html5lib-python) from
Python.
[![Dart CI](https://github.com/dart-lang/html/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/html/actions/workflows/test-package.yml)
[![pub package](https://img.shields.io/pub/v/html.svg)](https://pub.dev/packages/html)
[![package publisher](https://img.shields.io/pub/publisher/html.svg)](https://pub.dev/packages/html/publisher)

# Usage
This is a Dart HTML5 parser.

## Usage

Parsing HTML is easy!

Expand All @@ -16,6 +18,11 @@ main() {
}
```

You can pass a String or list of bytes to `parse`.
There's also `parseFragment` for parsing a document fragment, and `HtmlParser`
if you want more low level control.
You can pass a String or list of bytes to `parse`. There's also `parseFragment`
for parsing a document fragment, and `HtmlParser` if you want more low level
control.

## Background

This package was a port of the Python
[html5lib](https://github.com/html5lib/html5lib-python) library.
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: html
version: 0.15.1-dev

description: APIs for parsing and manipulating HTML content outside the browser.
repository: https://github.com/dart-lang/html

Expand Down

0 comments on commit faafebf

Please sign in to comment.