markright v0.4.3 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

Summary

Types

t()
t() :: %Markright.Collectors.Type{decorated: true | false, tech: List.t, type: :default | :twit | :mediatwit | :image | :album | :reference}

Functions

afterwards(acc, opts)

Callback implementation for Markright.Collector.afterwards/2.

fields()
on_ast(cont, acc)

Callback implementation for Markright.Collector.on_ast/2.