Open w2know opened 2 years ago
This happens because the CodeMirror
element determines the size of the editor, not the preview element.
The reverse happens when you enter this markdown, the preview element will be too small and becomes scrollable:
![alt text](https://www.markdownguide.org/assets/images/tux.png)
![alt text](https://www.markdownguide.org/assets/images/tux.png)
![alt text](https://www.markdownguide.org/assets/images/tux.png)
![alt text](https://www.markdownguide.org/assets/images/tux.png)
Unless the extra whitespace is causing problems somewhere, I'm inclined to say that this is intended behaviour for the editor.
Thanks for the reply. The extra white space becomes a problem when there are other content below the rendering area on the same page. (The significant extra white space appear in the middle of the web page!)
Describe the bug Significant white space appear when the markdown text is in preview/toggle mode.
To Reproduce Steps to reproduce the behavior:
Thanks for visiting The Markdown Guide!
This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic syntax and extended syntax.
Basic Syntax
These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.
Heading
H1
H2
H3
Bold
bold text
Italic
italicized text
Blockquote
Ordered List
Unordered List
Code
code
Horizontal Rule
Link
Markdown Guide
Image
Extended Syntax
These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.
Table
Fenced Code Block
Footnote
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
Heading ID
My Great Heading {#custom-id}
Definition List
term : definition
Strikethrough
The world is flat.Task List
Emoji
That is so funny! :joy:
(See also Copying and Pasting Emoji)
Highlight
I need to highlight these ==very important words==.
Subscript
H~2~O
Superscript
X^2^