Skip to content

Position data included when verbose is false #7

Closed as not planned
Closed as not planned
@Josmithr

Description

@Josmithr

Initial checklist

Affected packages and versions

hast-util-from-html@2.0.3

Link to runnable example

No response

Steps to reproduce

import { fromHtml } from "hast-util-from-html";

const htmlTree = fromHtml("This is some <b>bold</b> text!", { fragment: true, verbose: false });

Expected behavior

The expected output should not contain position information, per the documentation on the verbose parameter, but it does.

Actual behavior

Position information included in generated HAST tree.

Affected runtime and version

node@18.19.1

Affected package manager and version

npm@10.2.4

Affected OS and version

Linux

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙅 no/wontfixThis is not (enough of) an issue for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions