markright v0.5.1 Markright.Collectors.Type

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

Link to this section Types

Link to this type t()
t() :: %Markright.Collectors.Type{decorated: true | false, tech: List.t, 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 on_ast(cont, acc)

Callback implementation for Markright.Collector.on_ast/2.