Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67779

add backslash for line break in markdown

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:

      Description

      This is a request for the markdown library.

      In [common mark|https://commonmark.org/help/tutorial/03-paragraphs.html] we can use a backslash at the end of the line to insert <br>. 

      The advantage over "two trailing spaces" is that the backslash is visible, and some editors remove trailing spaces.

      The implementation should be easy : replace

      \\\n

      by

      <br>\n

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kpym kpym
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: