Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added multiline handling setting and switched to option functions #4

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

MichalSalon
Copy link
Collaborator

[v2.0.0] - 2024-03-07

Added

  • support for OptionFunc to configure the parser
  • way to customize how multiline output is handled.
    • It can be either preserved, squashed to one line or preserved with indent (e.g. for yaml)

Changed

  • parser constructor now takes variadic parameter OptionFunc

Removed

  • maxFunctionCount parameter from constructor

Fixed

  • issue where multiline function output would not be indented if it was nested inside of text block.

Input

Something: |
    <Text 
    <@someMultiLineFunction>
    text| upper>

Output:

Something: |
    TEXT 
    SOME MULTI
LINE FUNCTION
OUTPUT
    TEXT

@MichalSalon MichalSalon merged commit 1cf3786 into main Mar 8, 2024
5 checks passed
@MichalSalon MichalSalon deleted the multiline-handling-options branch March 8, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants