RIP21 / react-simplemde-editor

React wrapper for simplemde (easymde) markdown editor
https://react-simplemde-edtior.netlify.com/
MIT License
766 stars 103 forks source link

Multiline Code Block Highlighting in Edit Mode #232

Closed 32teeth closed 11 months ago

32teeth commented 11 months ago

Issue

When creating a multi line code block in the editor the representation is really wonky Screenshot 2023-10-11 at 09 54 09

Options

  1. Prevent any highlighting in edit mode (this is standard convention)
  2. Highlight entire row across text
#!/bin/bash

# Usage: fusi-curl-report.sh [curl options]
curl -w @- -o /dev/null -s "$@" <<'EOF'
    time_namelookup:  %{time_namelookup}\n
       time_connect:  %{time_connect}\n
    time_appconnect:  %{time_appconnect}\n
   time_pretransfer:  %{time_pretransfer}\n
      time_redirect:  %{time_redirect}\n
 time_starttransfer:  %{time_starttransfer}\n
                    ----------\n
         time_total:  %{time_total}\n
EOF

GitHub Editor Mode

No highlighting

Screenshot 2023-10-11 at 09 54 45

RIP21 commented 11 months ago

Look at how to style the editor styles on easymde docs or in codemirror docs that powers it. Styling is not in scope of this wrapper library.

Feel free to re-open if it makes sense. Thanks.