Markright.WithSyntax.Attribute (markright v0.7.1)

Parses the input for the class and or id specified.

Examples

iex> defmodule ClassOrId, do: use Markright.WithSyntax.Attribute
iex> "[class]world*!" |> ClassOrId.to_ast
%Markright.Continuation{ast: {nil, %{class: "class"}, "world*!"}, tail: ""}

iex> "Hello *[class1]my* _{style1 style2}lovely_ world!" |> Markright.to_ast
{:article, %{},
  [{:p, %{},
    ["Hello ", {:strong, %{class: "class1"}, "my"}, " ",
     {:em, %{style: "style1 style2"}, "lovely"}, " world!"]}]}

Link to this section Summary

Link to this section Functions