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

YAML headers, special symbols and table broken => RAW MODE suggested #418

Closed
robert-winkler opened this issue Nov 15, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@robert-winkler
Copy link

YAML headers and special symbols modified on reading/writing
For adding document information in markdown documents, YAML headers are common. Those are changed when the markdown files are edited with Text. As well, I noticed the undesired 'optimization' of text, such as [] is changed to [ ], and \delta becomes \delta. Additionally, a pipe table becomes modified in my document. This behavior breaks things, e.g., when processing the MD file with Pandoc (https://pandoc.org/, https://peerj.com/articles/cs-112/).

Expected behavior
Existing markdown code/text should be left unmodified.

Reproduce - YAML

  1. Create a markdown file with a YAML header
---
title: The life of Donald
author: Donald Duck
---
  1. Upload and modify the file in Nextcloud/Text
  2. Download and compare

Reproduce - Symbols/ Commands

  1. Create a markdown file with special symbols
[@markof_et_al_2019]
$\delta$
  1. Upload and modify the file in Nextcloud/Text
  2. Download and compare

Reproduce - Table

  1. Create a markdown file with a pipe table
| Hello | World |
| ------- | -------- |
| Mick  | 2017   |
  1. Upload and modify the file in Nextcloud/Text
  2. Download and compare

SUGGESTION
Provide a RAW MODE option (similar to the previous Markdown Nextcloud editor).

@nilsbecker
Copy link

This appears to be a duplicate of #772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants