Skip to content

Proposal: Add options to customize filter AST type #33

@Leko

Description

@Leko

Currently, filtered AST types are Link, Image, BlockQuote, Emphasis.

if (helper.isChildNode(node, [Syntax.Link, Syntax.Image, Syntax.BlockQuote, Syntax.Emphasis])) {

I want to add Header to the blacklist.
But it cannot set as default behavior. It's not needed in many use cases.
So I propose to support ignoreSyntax option.

  • Type: Array<String> (optional)
  • Default values: [Syntax.Link, Syntax.Image, Syntax.BlockQuote, Syntax.Emphasis]

How about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions