diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-03 12:50:17 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | 72bd5ff1f71f2ff666d667c6442e308f654d12c6 (patch) | |
tree | 9b8ab387c88591026d546ef309f2b2f756cf2f5a /README.md | |
parent | 427a31f8a076d0fea156f45b160c08e3c0a53bef (diff) |
docs: remove description of Emitter trait from readme
Implementing Emitter methods as no-ops works great with the NaiveParser
but less so when you want spec-compliant HTML parsing since that
requires tree construction and most Emitter methods to be implemented.
Ideally we'll implement both tree construction and a new way of avoiding
unnecessary allocations (without having to implement your own Emitter).
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -57,17 +57,6 @@ The library is not yet fuzz tested. For details please refer to the [changelog]. -Both crates have an `Emitter` trait that lets you bring your own token data -structure and hook into token creation by implementing the `Emitter` trait. -This allows you to: - -* Rewrite all per-HTML-tag allocations to use a custom allocator or data structure. - -* Efficiently filter out uninteresting categories data without ever allocating - for it. For example if any plaintext between tokens is not of interest to - you, you can implement the respective trait methods as noop and therefore - avoid any overhead creating plaintext tokens. - ## License Licensed under the MIT license, see [the LICENSE file]. |