Markright.Collectors.Type (markright v0.7.1)
Collector that determines the type of the article.
The pattern is:
- :decorated — the article has at least one image in it
- :tech — the article includes code blocks, value is the list of languages used
type
as:- :default — default
- :twit — single sentense, presumably of length <= 140 symbols (not validated here)
- :image — the article contains a single image only
- :album — the article has at least two images
Link to this section Summary
Functions
Callback implementation for Markright.Collector.afterwards/2
.
Callback implementation for Markright.Collector.on_ast/2
.
Link to this section Types
Specs
t() :: %Markright.Collectors.Type{ decorated: true | false, tech: list(), type: :default | :twit | :mediatwit | :image | :album | :reference }
Link to this section Functions
Link to this function
afterwards(acc, opts)
Callback implementation for Markright.Collector.afterwards/2
.
Link to this function
fields()
Link to this function
on_ast(cont, acc)
Callback implementation for Markright.Collector.on_ast/2
.