Yocaml.MetadataSourceData validation tools.
A type that describes validated metadata.
Helper for Yocaml.Required.DATA_READABLE.neutral.
val validate :
(module Required.DATA_PROVIDER) ->
(module Required.DATA_READABLE with type t = 'a) ->
string option ->
'a validatedvalidate (module Provider) (module Readable) opt_str Validates an optional string described in the syntax described by the Provider module using the validation function described by the Readable module. The function uses Readable.neutral as a fallback if the string is null.
A set of functions for extracting metadata from a read document.
Defines the extraction strategy for a set of metadata.
There are several strategies for describing how to separate metadata from the actual content, but it is also possible to provide your own implementation using the Custom constructor.
Define a regular strategy, using 3 char as a delimiter.
Define the front-matter delimiter.
Define a custom extraction strategy.
extract_from_content ~strategy content Attempts to extract metadata from a document using a defined strategy.