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

Allow newline after "one of" #54

Merged
merged 4 commits into from
Apr 2, 2021
Merged

Conversation

benjie
Copy link
Contributor

@benjie benjie commented Apr 2, 2021

Prettier adds newlines around bulleted lists, which for example means that the ExecutableDirectiveLocation production becomes:

ExecutableDirectiveLocation : one of

- `QUERY`
- `MUTATION`
- `SUBSCRIPTION`
- `FIELD`
- `FRAGMENT_DEFINITION`
- `FRAGMENT_SPREAD`
- `INLINE_FRAGMENT`
- `VARIABLE_DEFINITION`

This PR ensures that spec-md parses this as it is intended.

Relates to #31 (prettier support). Another PR incoming.

@benjie benjie marked this pull request as draft April 2, 2021 19:30
@benjie
Copy link
Contributor Author

benjie commented Apr 2, 2021

Trying to make this work for both condensed and non-condensed content. Will mark as ready for review when I've achieved it.

@benjie benjie marked this pull request as ready for review April 2, 2021 19:39
@benjie
Copy link
Contributor Author

benjie commented Apr 2, 2021

Sorted. You're probably going to want to rename NL_NO_BULLET 🤷

@leebyron leebyron merged commit d4dce60 into leebyron:master Apr 2, 2021
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.

None yet

2 participants