Code Monkey home page Code Monkey logo

Comments (6)

RobertDober avatar RobertDober commented on August 17, 2024

This is not an error but a design choice as explained in the README.

Two workarounds come into mind immediately

iex(7)> text = ~s/Hello `sign\n \\* one`/
"Hello `sign\n \\* one`"
iex(8)> Earmark.to_html text             
"<p>Hello `sign\n * one`</p>\n"
iex(9)> text = ~s/Hello `sign\n &nbsp;* one`/
"Hello `sign\n &nbsp;* one`"
iex(10)> Earmark.to_html text                 
"<p>Hello `sign\n &nbsp;* one`</p>\n"
iex(11)> text = ~s/Hello `sign\n &nbsp;* one`/

Not sure how the second renders. Maybe it is just best to rearrange the doc so that the line does not start with an * which is more readable anyway.

For what it is worth, about 30% of the markdown implementations on Babelmark (http://johnmacfarlane.net/babelmark2/?text=%60sign%0A*+expression%60) agree with Dave's interpretation.

from earmark.

RobertDober avatar RobertDober commented on August 17, 2024

oops that reveals another issue

from earmark.

RobertDober avatar RobertDober commented on August 17, 2024

@tubedude sorry if I missread your issue, you meant #49 not the <ul> issue right?

from earmark.

tubedude avatar tubedude commented on August 17, 2024

Yes @RobertDober I think this issue is related to the backquotes enclosing a multiline text.
I agree with you that this issue and #49 are the same.

from earmark.

RobertDober avatar RobertDober commented on August 17, 2024

@pragdave I just pushed a development branch that fixes #48, #49 & #51. However the code is not one that I would happily merge into master.
I need your wisdom here :). But is this the right place to discuss the code quality and design choices I have made? (or rather not made, I tried to respect your design as much as possible)

from earmark.

RobertDober avatar RobertDober commented on August 17, 2024

Closed with 55828d1

from earmark.

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.