Giter Site home page Giter Site logo

Comments (3)

BoQsc avatar BoQsc commented on August 17, 2024

The cheatcode for now is to use <br> HTML tag to force a line-break.

image

from dfeed.

CyberShadow avatar CyberShadow commented on August 17, 2024

This part of Markdown doesn't get to be used in DFeed, because it's incompatible with RFC 2646 and 3676.

Though we could ignore the formatting rules in those RFCs, and just put raw Markdown in the message, that would make the messages less pleasant to read in most other MUAs. We don't use Content-Type: text/markdown for the same reason.

With a little work, it might be possible to convert between RFC 3676 and Markdown, converting two spaces to zero (when encoding user-entered Markdown into on-the-wire messages) and back (when quoting). For now, I suggest to just use zero spaces for line breaks, which should work.

from dfeed.

BoQsc avatar BoQsc commented on August 17, 2024

This part of Markdown doesn't get to be used in DFeed, because it's incompatible with RFC 2646 and 3676.

Though we could ignore the formatting rules in those RFCs, and just put raw Markdown in the message, that would make the messages less pleasant to read in most other MUAs. We don't use Content-Type: text/markdown for the same reason.

With a little work, it might be possible to convert between RFC 3676 and Markdown, converting two spaces to zero (when encoding user-entered Markdown into on-the-wire messages) and back (when quoting). For now, I suggest to just use zero spaces for line breaks, which should work.

  • Completely removing spaces at the end of line: also does a line-break. Which is great.
  • Adding Zero Width Space character (U+200B) at the end of line, as you have mentioned is also a viable option.

Example shows no spaces at the end of line (and no Zero Width Space) - gives a line break - great.

image

from dfeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.