Skip to content

Curly brackets inside the block #13

@dmitry-timofeev

Description

@dmitry-timofeev

If the block contents contains closing brackets, it will affect the block and inside_block selectors.

E.g., given the source:

class Curly {
  static String RIGHT_CURLY_REGEX = "\\}";
}

and the ci block:

<!--codeinclude-->
[Curly](Curly.java) block:Curly
<!--/codeinclude-->

will produce (no last curly):

class Curly {
  static String RIGHT_CURLY_REGEX = "\\}";

Since the main value propositions of the plugin are refactoring-friendly code examples and their correct inclusion on the page, I'd consider how such silent error can be prevented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions