Marktext: Pasting XML

Created on 11 Nov 2018  ·  4Comments  ·  Source: marktext/marktext

Description

<artifactId>derbyclient</artifactId>

  • [x] Can you reproduce the issue?

Steps to reproduce

  1. Copy the following text <artifactId>derbyclient</artifactId>
  2. Paste it into MarkText
  3. It will be HTML and you can't change it. You can't put backticks ` before and after it. You can't hit enter when the cursor is at the end of the text.

Expected behavior:
That the pasted text initially is HTML, but after wrapping it in backticks `, it should get parsed as normal code. And pasting it into something like this should work flawlessly.

`paste the HTML here`

Actual behavior:
It gets interpreted as HTML and you can't do a thing about it.

Link to an example: [optional]

Versions

  • Mark Text: v 0.13.53
  • Operating system: Windows 10
code block 🐛 bug

All 4 comments

Thanks @stefnotch, there is definitely a problem. I tested it with the following example: https://www.w3schools.com/xml/note.xml.

@stefnotch Can you still reproduce this issue on the latest version?

Fixed on latest master.

Fixed. 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yougotwill picture yougotwill  ·  3Comments

1dancook picture 1dancook  ·  3Comments

1dancook picture 1dancook  ·  4Comments

acostalima picture acostalima  ·  3Comments

stefnotch picture stefnotch  ·  4Comments