Skip to content

Pasting to the editor gives HTML result instead of plain text result #45

@joulev

Description

@joulev

When copy-paste code from a webpage to the editor in learnlatex.org, the HTML part of the code is also copied. For example, have a look at the following code

\documentclass{article}
\begin{document}
Hello, world
\end{document}

How it is displayed in my browser:

image

Copy it and paste to learnlatex.org:

image

[still compilable with LaTeX Online, not yet tested with Overleaf]

When pasting, all formatting of the code should be removed, leaving only the plain text. For example this is, I believe, the intended behaviour: that very piece of code pasted to https://paste.ubuntu.com:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions