Skip to content

Add filter syntax to prevent recursive parsing (no_parse filter) #7

@ntindle

Description

@ntindle

Add support for Jinja-style filter syntax that allows users to prevent recursive parsing of tag content.

Feature Request

Users should be able to add a | no_parse filter to tags to stop parsing at that level and treat the inner content as a raw string.

Syntax

<tag | no_parse><inner><content>anything</content></inner></tag>

Expected Behavior

Instead of parsing the inner tags recursively, the parser should:

  • Recognize the | no_parse filter syntax
  • Collect everything between the opening and closing tags as raw string content
  • Attach this raw string as the value for that node

Use Cases

  • Preserving HTML/XML content without further processing
  • Storing template code or markup as literal strings
  • Preventing unwanted parsing of complex nested structures

Implementation Notes

  • Should maintain backward compatibility with existing markup
  • Filter syntax should be extensible for future filter types
  • Consider Jinja-style syntax for familiarity

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions