question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slate not rendering output as expected

See original GitHub issue

Describe the bug Generated output does not seem to render in slate properly (at least for OpenAPI 3). It does render in Shins as expected. For a test, I used the petstore3.json included in the Widdershins repo.

  • [ x ] - I have checked that my input document is valid OpenAPI 2.0/3.0.x or AsyncAPI 1.x

To Reproduce Steps to reproduce the behavior:

  1. Command-line: node widdershins defs/petstore3.json -o petstore3.html.md
  2. My input file: https://gist.github.com/asanger/489ec74957605200d1f3e010ba9d4cde
  3. Place in Slate root directory
  4. Visit http://localhost:4567/petstore3.html

Expected behavior Rendering of the document should not appear to be broken in Slate. It should (for the most part) match exactly how Shins renders.

Screenshots When loading this file with shins, I get valid rendering: image

When loading this file with slate (cloned repo, no alterations), I get broken rendering: image

Versions:

  • Node.js: 11.5.0
  • Slate: 2.3.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
asangercommented, Mar 17, 2019

macOS Mojave 10.14.3

0reactions
MikeRalphsoncommented, Mar 28, 2020

Should be fixed in version 4.0.0, which includes breaking changes (please see the README.md file).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slate: How to find when Editor has fully rendered
Use the componentDidUpdate life-cycle method in the class that renders your Editor component. componentDidUpdate() { if(this.state.document ...
Read more >
Normalizing - Slate
Before any of the other normalizations can execute, Slate iterates through all Element nodes and makes sure they have at least one child....
Read more >
Uploading media and rendering loading states with slate js.
This is our start position, before we press undo, the image is in the editor, as expected. Pressing undo once will undo the...
Read more >
Understanding the Slate UI Architecture in Unreal Engine
SEditableText is a Slate widget responsible for both input and output. ... core of slate, but rather domain-specific widgets that are not intended...
Read more >
Logic Pro release notes - Apple Support
Logic can now record MIDI FX plug-in output as MIDI to the tracks area ... Output Gain is not accurately rendered in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found