Interface NodeSelector

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Experimental @FunctionalInterface public interface NodeSelector
Selects the Markdown AST nodes a PageExportProcessor applies to.
  • Method Summary

    Modifier and Type
    Method
    Description
    element(String... tagNames)
    Selects custom elements (i.e.
    boolean
    matches(guideme.libs.mdast.model.MdAstNode node)
     
    type(String... types)
    Selects nodes by their mdast type (i.e.
  • Method Details

    • matches

      boolean matches(guideme.libs.mdast.model.MdAstNode node)
    • element

      static NodeSelector element(String... tagNames)
      Selects custom elements (i.e. <Color>) by their tag name, both in block and in inline content.
    • type

      static NodeSelector type(String... types)
      Selects nodes by their mdast type (i.e. "image" or "link").