flarum / issue-archive

0 stars 0 forks source link

[Markdown] Inserting nested Markdown does not work properly #266

Open OrdinaryJellyfish opened 5 years ago

OrdinaryJellyfish commented 5 years ago

Bug Report

Current Behavior Clicking on a toolbar icon does work properly, but Inserting some text and pressing another icon inside that markdown adds the closing tag to the end of the text area.

Steps to Reproduce

  1. Click on the start discussion button
  2. Click on a toolbar link
  3. Type a word inside
  4. Press another toolbar link
  5. See error

Expected Behavior I would expect the closing tag to be inserted after the starting tag.

Screenshots screenshot

Environment

tobyzerner commented 5 years ago

This is an issue with the markdown toolbar library we're using – https://github.com/github/markdown-toolbar-element

I'm going to leave this issue open though as a task to send a PR to fix it. Low priority though.

franzliedke commented 4 years ago

NB: We've integrated the library into our markdown extension, so this is now our own bug. :grin: