From ed5b3f954e85b05d2d02f11ba6bd40c98394f341 Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sun, 28 May 2023 00:05:46 +0200 Subject: [PATCH] Rewording --- .../2023-05-27-captioning-jekyll-highlighted-code-block.tl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/coding/2023-05-27-captioning-jekyll-highlighted-code-block.tl b/_posts/coding/2023-05-27-captioning-jekyll-highlighted-code-block.tl index f079764..4edaff5 100644 --- a/_posts/coding/2023-05-27-captioning-jekyll-highlighted-code-block.tl +++ b/_posts/coding/2023-05-27-captioning-jekyll-highlighted-code-block.tl @@ -9,12 +9,12 @@ Liquid tag inside @
@ HTML tag. That in turn allows embeeding @
@ tag and captioning code, e.g. with file path. Jekyll (v4.3.2) does not provide captioning, but can be extended with simple plugin. -Plugin code used by this blog is +Plugin code presented here and used by this blog is "here.":https://gitea.michalczyk.pro/michalczyk.pro/blog/src/branch/master/_plugins/highlight-capion-options.rb -The plugin will override @Jekyll::Tags::HighlightBlock.render()@ method. HTML +The plugin overrides @Jekyll::Tags::HighlightBlock.render()@ method. HTML code returned by this method can be manipulated using parser library like -_Nokogiri_. Adding a single tag is simple enough, that it can be succesfully +_Nokogiri_, but inserting a single tag is simple enough to be succesfully performed without additional libraries: {% highlight ruby caption=_plugins/highlight-caption-option.rb %}