Nameless: editing a forum post breaks all formatting when set to markdown editor

Describe the issue So, I was copying (and subsequently, reformatting) a post from my old forum. This post had a lot of links. I realized I forgot one line after posting it, and went to edit it. I saw that a bunch of stuff got changed and re-formatted. However, all the links broke. It went from a nice [discord](https://discord.atomicmc.net) to [<a>https://discord.atomicmc.net]</a>(a href=)">join the Discord server, which looks like going from discord to https://discord.atomicmc.net">discord To Reproduce Steps to reproduce the behaviour:

  1. Go to ‘forum’
  2. Click on ‘new thread’
  3. put a lot of markdown in it
  4. post it
  5. Click ‘edit post’
  6. change the first line to be a header 4 (####) (also not sure if this part is relevant at all but thats the change I happened to make)
  7. watch it all break

Expected behaviour It works properly and edits like it should

Screenshots https://gyazo.com/d07b7cb83d159abb602576d0681f69a4

NamelessMC version (from AdminCP -> Overview) it says 2.0.0-pr7 but it’s actually the latest dev build.

Additional information I don’t think there’s much else to add.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

@samerton Can you explain why you prefer HTML over Markdown? Markdown seems more suitable for this purpose to me. People who use discourse, github, discord, are already somewhat familiar with markdown. It can have bold, italic, inline and block code, images, links, headings, ordered and unordered lists, task lists, tables, that’s basically everything you need.

Unfortunately I’m still inclined to remove Markdown altogether for v2’s release so we can focus on maintaining just one format method. Markdown’s been neglected for a while now and would need a lot of work to bring it up to scratch.