You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long documentation strings that contain a newline are rendered as is in GraphiQL. This makes reading them a bit confusing and disjointed.
Doc pane
Tooltip
In the original schema this looks like this:
""" Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. This can be the compass bearing, or the direction towards the next stop or intermediate location. """heading: Float
I would love it if these doc strings, which in our case can be multiple paragraphs, be treated like markdown. This would mean that a single newline is ignored and a double newline treated as a new paragraph.
Thank you for making this wonderful piece of software.
The text was updated successfully, but these errors were encountered:
thanks @leonardehrenfried ! this is a great suggestion. packages/graphiql-react/src/markdown.ts is where we keep the configuration for markdown-it, and iirc, this is just a simple config tweak or plugin away from happening!
Long documentation strings that contain a newline are rendered as is in GraphiQL. This makes reading them a bit confusing and disjointed.
Doc pane
Tooltip
In the original schema this looks like this:
I would love it if these doc strings, which in our case can be multiple paragraphs, be treated like markdown. This would mean that a single newline is ignored and a double newline treated as a new paragraph.
Thank you for making this wonderful piece of software.
The text was updated successfully, but these errors were encountered: