EarmarkTagCloud.EarmarkAst (EarmarkTagCloud v0.2.0-pre) View Source
An Earmark AST processor which will change annotated tag cloud paragraphs into spans with the necessary attributes
Needs Earmark version 1.4.16-pre2 or later
E.g.
iex(1)> markdown = [
...(1)> "Elixir %tc: 10/blue 18 800", "",
...(1)> "Ruby %tc: 4/red 10 100"]
...(1)> render_html(markdown)
"<span style=\"color: #7171ff; font-size: 18pt; font-weight: 800;\">\nElixir </span>\n<span style=\"color: #ffd4d4; font-size: 10pt; font-weight: 100;\">\nRuby </span>\n"
Link to this section Summary
Link to this section Types
Specs
ast() :: Earmark.ast()
Specs
ast_node() :: Earmark.ast_node()
Specs
attribute() :: Earmark.ast_attribute()
Specs
attributes() :: Earmark.ast_attributes()
Specs
binaries() :: [binary()]
Specs
maybe(t) :: t | nil