package mdx
Executable code blocks inside markdown files
Install
Dune Dependency
Authors
Maintainers
Sources
mdx-1.9.0.tbz
sha256=f94e414d38d306e4f23e017f93ac96ca75cbefedd3800414a1cbaab1f6a59eab
sha512=71dcb1ed6188994f4ad2cdd3dbf8006318f6a7ec88683c46c9df5ef73c677542e89e1e7e2ba8ab99ea69be1b43db66f33489490b8a18835e5decceafecf9ca80
doc/mdx.top/Mdx_top/index.html
Module Mdx_top
Toplevel logic for mdx
.
val init :
verbose:bool ->
silent:bool ->
verbose_findlib:bool ->
directives:directive list ->
packages:string list ->
predicates:string list ->
unit ->
t
init ()
is a new configuration value.
val eval : t -> string list -> (string list, string list) Result.result
eval t p
evaluates the toplevel phrase p
(possibly spawning on mulitple lines) with the configuration value t
.
val in_env : Mdx.Ocaml_env.t -> (unit -> 'a) -> 'a
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>