Comments (9)
@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.
Exciting :) I will add some tests to reproduce it and see if there can be an easy fix.
from premonition.
@thunder-spb What do you use for code blocks ? ```
or ~~~
from premonition.
@lazee i'm using ```
from premonition.
Oh, cool! thanks @lazee !
from premonition.
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
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:
Switching to ~~~~ and ~~~~ does not seem to alleviate the issue for me.
Is there a bug in Kramdown that is causing this?
from premonition.
@shawn-eary So your are saying that Premonition is being rendered inside code-blocks ?
from premonition.
@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.
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)
- Add support for Kramdown? HOT 1
- Reference links aren't resolved HOT 6
- Doesn't render in post excerpts HOT 2
- Block title not taken into account when block type is not defined in _config.yml HOT 4
- Admonitions not on first column of line HOT 9
- Add tests HOT 1
- Setup ci/cd with Github Actions HOT 1
- Improve unit and integration tests
- /processor.rb:55:in `block in load_references': undefined method `match' for nil:NilClass (NoMethodError) HOT 3
- Support for default_title per type HOT 1
- How to get premonition to work with themes? HOT 1
- Premonition render in included markdown file HOT 6
- Collections HOT 11
- Doesn't render in gitlab pages. HOT 1
- More advanced templates HOT 1
- Add demo site HOT 1
- premonition not working with windows line separator HOT 5
- Documentation specifies custom types as an array, instead of hash HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from premonition.