We are currently planning to migrate to a different platform for the forum. We will announce this fact both here and on Twitter, once we have settled on a solution.

Suggestion: Another way to Paste: Simplified Markdown

edited July 2019 in Features

I know that Zettlr tries to html-fy the paste, often resulting in quite an intense array of tags.
But even for simple things like a single link that are parsed easily and properly, the meta tag is still included and needs to be manually deleted.

The result for me is that I never ever ever use the paste, and always do a plain text paste instead.

I wonder if there is a middle ground - preferences could be set in the Settings - to get only what can be parsed into canonical Markdown, but nothing more.

Setting > Allow the use of the following tags when pasting
(These are toggle switches)

  • <meta> (Gets rid of the charset tag)
  • <span> (Gets rid of the attempted CSS parsing)

For example, if I copy the link to https://www.zettlr.com (Imagine a wordpress site with inlined CSS :-), on paste I get:

  1. [current plaintext]
  1. [current normal paste]
<meta charset="utf-8">
<span style="color: green; font-family: .... etc></span>
  1. [proposed customizable]


  • Heya there,
    you've got a point.

    But first: Concerning: "(Imagine a wordpress site with inlined CSS :-)" — Actually what is happening is that the browser itself copies all rules from the CSS-classes into the HTML, which bloats the HTML exports so much. It's extremely interesting to see what programs copy what in which way into the clipboard, because there are wide ranging differences.

    Concerning your URL that you've used as an example: If you copy a URL from Firefox, it'll be plain text (because it is), but Chrome wraps the URL into a <a>-tag, and I don't know why it would do that.

    In general, simplifying the rendered markdown to remove all unnecessary tags would be a good idea, so if you don't mind, please feel free to open up a GitHub issue!


Sign In or Register to comment.