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

[ENHANCEMENT] HTML5 Export - Looks different from the preview #1367

Closed
stefnotch opened this issue Oct 19, 2020 · 3 comments
Closed

[ENHANCEMENT] HTML5 Export - Looks different from the preview #1367

stefnotch opened this issue Oct 19, 2020 · 3 comments
Labels
stale This label indicates that this issue might be automatically closed soon.

Comments

@stefnotch
Copy link

stefnotch commented Oct 19, 2020

Description

As I've noticed in the following issues, the HTML5 export and printing intentionally looks different from the preview. This also affects printing the document with Ctrl+P

For example, when it looks like this in Zettlr
image

The export ends up gobbling up all the new lines
image

#1362
#1360
#1363
#1364

The current behaviour does make sense, considering that the preview should be different from the final document. However, a number of things are, in my opinion, quite unexpected.

Proposed Changes

I would propose adding a HTML5 mode that tries to keep the document as close to the preview as possible. This is also what Typora does and is significantly less unexpected. Especially things like line breaks easily go unnoticed until the last moment.

Caveats

Regarding line breaks, it might also make sense for Zettlr to automatically save them in a way that actually reflects what the preview shows.

@stale
Copy link

stale bot commented Dec 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale This label indicates that this issue might be automatically closed soon. label Dec 20, 2020
@nathanlesage
Copy link
Member

Sorry for coming back at you so lately. The preview intentionally looks different from the HTML output, and a full WYSIWYG-mode possibly won't ever come. Furthermore, double line-breaks are Markdown-compliant, and Typora is non-standard-conforming here.

@CaeeXar
Copy link

CaeeXar commented Mar 21, 2021

Yes, please fix.
Especially the line-break issues are irritating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This label indicates that this issue might be automatically closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants