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

Square brackets in book bit #3

Open
stefanszasz opened this issue Mar 31, 2023 · 0 comments
Open

Square brackets in book bit #3

stefanszasz opened this issue Mar 31, 2023 · 0 comments
Assignees

Comments

@stefanszasz
Copy link
Contributor

Currently, a book bit containing square brackets is not parsed properly. Eg:

[.book]
[#My book title [Text in brackets]]

Returns:

[
    {
        "bitmark": "[.book]\n[#My book title [Text in brackets]]",
        "bit": {
            "type": "book",
            "format": "bitmark--",
            "body": "My book title [Text in brackets]]",
            "item": "",
            "hint": "",
            "isExample": false,
            "example": "",
            "title": ""
        },
        "errors": [
            {
                "message": "Unexpected input '[#My book title [Text'",
                "line": 2,
                "column": 16,
                "errorLine": "[#My book title [Text in brackets]]"
            },
            {
                "message": "Unexpected input ']'",
                "line": 2,
                "column": 34,
                "errorLine": "[#My book title [Text in brackets]]"
            }
        ]
    }
]

The result should have the .title set to My book title [Text in brackets]

Reproduced with v1.0.35

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

No branches or pull requests

2 participants