Git Product home page Git Product logo

Comments (9)

lazee avatar lazee commented on September 26, 2024 1

@thunder-spb Okidoki. Jeyll actually uses Kramdown for Markdown rendering. And Kramdown uses ~~~ for this. If you switch to that things should work already. I will add support for ``` when I get time.

https://kramdown.gettalong.org/quickref.html#code-blocks

from premonition.

lazee avatar lazee commented on September 26, 2024

Exciting :) I will add some tests to reproduce it and see if there can be an easy fix.

from premonition.

lazee avatar lazee commented on September 26, 2024

@thunder-spb What do you use for code blocks ? ``` or ~~~

from premonition.

thunder-spb avatar thunder-spb commented on September 26, 2024

@lazee i'm using ```

from premonition.

thunder-spb avatar thunder-spb commented on September 26, 2024

Oh, cool! thanks @lazee !

from premonition.

shawn-eary avatar shawn-eary commented on September 26, 2024

Not sure if this got fixed in Premonition, but I seem to have a similar problem with jekyll-spaceship and Mermaid.js diagrams on rendered pages:
https://stackoverflow.com/questions/72394284/jekyll-spaceship-rendering-content-inside-four-backtick-fence

This:
image

Winds up getting rendered as:
image

Instead, I want to see the code between the opening and closing four backtick lines. What I actually want to see on the rendered page is:
image

Switching to ~~~~ and ~~~~ does not seem to alleviate the issue for me.

Is there a bug in Kramdown that is causing this?

from premonition.

lazee avatar lazee commented on September 26, 2024

@shawn-eary So your are saying that Premonition is being rendered inside code-blocks ?

from premonition.

shawn-eary avatar shawn-eary commented on September 26, 2024

@shawn-eary So your are saying that Premonition is being rendered inside code-blocks ?

No. It looks like something is trying to render Mermaid.js charts inside code blocks and I think it might be due to a Kramdown bug. I'm probably off topic here. I did, however, find this thread useful.

I'm so sorry if I am off topic. You might want to close this ticket if you have already fixed Premonition.

from premonition.

lazee avatar lazee commented on September 26, 2024

I see @shawn-eary . Markdown switched away from ~~~ to GFM a while back (not sure when), that also supports --- in different flavours. Making, and maintaining, logic on top of this can be a bit cumbersome. I wish we didn't have Markdown dialects, and that the format was a bit stricter :) Too bad AsciiDoc or ReStructuredText didn't win the race ;)

But I will do some testing and check that Premonition are working with the different block variants in Kramdown...

from premonition.

Related Issues (19)

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.