Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Markdown tables expand beyond window with no scrollbar #834
I created the following test table in a
And when loaded via a ReadTheDocs theme the resulting table looks like this:
The contents of a row that expand beyond the current window are not viewable. There is also no way to scroll horizontally on the table to view the contents at the end of the row. I am assuming this is happening because the text with the
Any ideas how to get around this?
This is a common problem with any code block on any web site. Unless you account for it in your CSS, code blocks with long lines will run off the right of the screen. The typical solution is to define a rule that a scroll bar is used if the width of the block exceeds some value, but not if it is less. Just like GitHub has in the first comment here.
However, the weird thing here is that this is inline code, which would normally wrap like this:
Thanks for the comments. I'll try to see if some custom CSS will fix this. Ideally, an horizontal scroll bar would be automatically created so that the code is viewable. Basically, replicating what GitHub does for rendering long code in a table (see https://github.com/linkedin/gobblin/wiki/Gobblin-on-Yarn#configuration)
The code span wrapping eliminates the need to account for the long table as reported, but other things might cause a table to be wider than the page, so we still address it. Fixes mkdocs#834.