diff --git a/README.md b/README.md index d4a7f3c..26691aa 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Our primary goal is to change the internal behavior of the CSSTree parser to sup - [Parse and generate](#parse-and-generate) - [Validate XPath expressions in `:xpath()` (walker example)](#validate-xpath-expressions-in-xpath-walker-example) - [Validate Regular Expressions in `:contains()` (walker example)](#validate-regular-expressions-in-contains-walker-example) + - [Using in browser](#using-in-browser) - [Development / Contributing](#development--contributing) - [Development commands](#development-commands) - [Reporting problems / Requesting features](#reporting-problems--requesting-features) @@ -335,6 +336,30 @@ for (const input of inputs) { } ``` +## Using in browser + +Our build process generates a browser-friendly version of the library, which can be used in the browser. You can insert it into your HTML page like this: + +```html + +``` + +or + +```html + +``` + +Example usage: + +```html + +``` + ## Development / Contributing Here is a short guide on how to contribute to this project: