Comments (6)
Back to the issue :)
The initial reason for rendering inside Premonition instead of a fall-through strategy, was that I needed to insert variables into the render. But I will see if I can come up with another approach.
from premonition.
Thanks for reporting this. Haven't actually crossed my mind that this could be a problem. I will look into this and see if I can come up with a fix.
from premonition.
Some of these features (reference links, footnotes, etc) were important to me, so I went ahead and wrote my own plugin for content blocks to solve this problem. It's quite rudimentary right now, and not very configurable for the moment, so be warned!
@lazee, the section called "How does it work?" in the README of my plugin explains the approach, and may be a source of inspiration for a fix. The key idea is that the Markdown content of a block shouldn't be parsed separately from the rest of the document.
If premonition fixes this issue, I would be happy to archive/deprecate my plugin and recommend premonition instead.
from premonition.
@MaximeKjaer Cool, I will definitely look into this!
If you are interested, I'll be happy to let you in on the project itself. Probably a lot of cool stuff that are yet to be added :)
from premonition.
Sure, I can help out on the project! Can't promise a ton of time in the coming weeks, but when I do have time, I'm up for it.
from premonition.
Removing the rendering within premonition is actually not that simple. Instead I have introduced support for reference links, like this: #19
from premonition.
Related Issues (19)
- Add support for Kramdown? HOT 1
- 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
- Prevent render inside code block? HOT 9
- 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.