Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Escaped values in MSON are treated as markdown #365

Closed
kylef opened this issue Jul 19, 2016 · 2 comments
Closed

Escaped values in MSON are treated as markdown #365

kylef opened this issue Jul 19, 2016 · 2 comments
Labels

Comments

@kylef
Copy link
Member

kylef commented Jul 19, 2016

Given the following API Blueprint.

# Data Structures
## Example
+ example: `__main__`

or

# Data Structures
## Example
+ example: `*main*`

Drafter 2.3.1 will output the following parse result:

element: "parseResult"
content:
  -
    element: "category"
    meta:
      classes:
        - "api"
      title: ""
    content:
      -
        element: "category"
        meta:
          classes:
            - "dataStructures"
        content:
          -
            element: "dataStructure"
            content:
              -
                element: "object"
                meta:
                  id: "Example"
                content:
                  -
                    element: "member"
                    content:
                      key:
                        element: "string"
                        content: "example"
                      value:
                        element: "string"
                        attributes:
                          samples:
                            - "main"

Note, my sample value is converted from __main__ or *main* to main.

Expected result

My sample value is __main__ in the parse result.

Actual Result

My escaped sample value is shown as intended within the parse result.

@kylef kylef added the bug label Jul 19, 2016
@pksunkara
Copy link
Contributor

I think this is a bug in snowcrash.

@riquack
Copy link

riquack commented Aug 26, 2016

@kylef When will this fix be released to the apiary editor?

@kylef kylef mentioned this issue Sep 1, 2016
kylef pushed a commit that referenced this issue Jul 7, 2017
Remove error for circular reference in members.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants