Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Thomas Vantuycom Member
@TheDancingCode · Joined 7 years ago · 31 posts · 8 topics · 4 reputation
Badges
Recent posts
-
Markdown: Link does not open in new tab
· 6 years ago
Writing it in the html link won't work, but Grav picks up the attribute in markdown links: https://learn.getgrav.org/16/content/linking#target-attribute
-
Markdown: Link does not open in new tab
· 6 years ago
Die you try https://support.google.com/chrome/answer/95647?hl=es&ref_topic=3421433&target=_blank ?
-
Cleanly Converting an HTML/Javascript Searchpage to a default.md File
· 6 years ago
Hi @tlsnine Let's figure this out. Can you indeed post or add a link to the relevant parts of the code you have already?
-
Markdown: paragraph on images
· 6 years ago
Although it's true that parsing HTML with RegExp generally isn't a good idea, the pattern we're looking for is so specific and the markdown output so predictable that it's really quite safe to use it
-
Override paragraph block in Parsedown
· 6 years ago
The Parsedown wiki recommends extending the Parsedown class and overriding the functions you want to change. Something like this: class CustomParsedown extends Parsedown { protected function parag
-
Override paragraph block in Parsedown
· 6 years ago
How can I change the way paragraph blocks are handled by Parsedown? I know I can use the addBlockType method with the onMarkdownInitialized event hook, but that method seems reserved for blocks that h
-
Markdown: paragraph on images
· 7 years ago
You could create a simple plugin to remove the <p> tags around your images. Something along these lines (untested): <?php namespace Grav\Plugin; use Grav\Common\Plugin; use RocketTheme\Toolb
-
Return status code 200 on virtual route
· 7 years ago
It returns a 404, despite the fact that I receive the webhook call and am able to process it.
-
Return status code 200 on virtual route
· 7 years ago
I'm working on a plugin to receive payments through Mollie. Part of the payment flow is a call from Mollie's side to a webhook on my server. I'm able to create a virtual route that acts as a webhook a
-
Avoid race condition
· 7 years ago
Thank you for pointing me to flock. Would this be correct? $file = File::instance($filename); $file->lock(); $data = Yaml::parse($file->content()); $id = data['id']; data['id']++; $file->save