package jekyll-format
Jekyll post parsing library
Install
Dune Dependency
Authors
Maintainers
Sources
jekyll-format-v0.2.0.tbz
sha256=8d5b438e235d712827a130906473951ed532522473262730043aa4783a60031a
sha512=ddd73dbf82ad5e8a613fe6600729b217658c478a445e2fd42c5da5f4cb66aad335a87ef239c37f97c53394e2d5d452034874fe424fd45e4503df3e71da7dff64
doc/jekyll-format/Jekyll_liquid/index.html
Module Jekyll_liquid
Source
Jekyll Liquid templates parsing module
Liquid templates are a library for flexible web apps. The original library is in Ruby, and this module is currently just a partial implementation that handles certain tags such as code highlighting.
Source
val highlight_exn :
?f:(Tags.highlight option -> Astring.String.sub -> Astring.String.sub) ->
Astring.String.sub ->
Astring.String.sub
highlight body
parses the body for Jekyll {% highlight %}
tags and applies f
to them and substitutes the result into the tag body. The default f
is highlight_markdown_code
that transforms them into vanilla Markdown with no special highlighting except for a code segment.
Source
val highlight_markdown_code :
Tags.highlight option ->
Astring.String.sub ->
Astring.String.sub
highlight_markdown_code s
will wrap the code in s
in a Markdown code segment. This can be parsed to highlight_exn
as a sensible default.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>