zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

line.ex (2581B)


      1 defmodule EarmarkParser.Line do
      2 
      3   @moduledoc false
      4 
      5 defmodule Blank  do
      6     @moduledoc false
      7     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, content: "")
      8   end
      9 defmodule Ruler  do
     10     @moduledoc false
     11     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, type: "- or * or _")
     12   end
     13 
     14 defmodule Heading  do
     15     @moduledoc false
     16     defstruct(annotation: nil, ial: nil, lnb: 0, line: "", indent: -1, level: 1, content: "inline text")
     17   end
     18 
     19 defmodule BlockQuote  do
     20     @moduledoc false
     21     defstruct(annotation: nil, ial: nil, lnb: 0, line: "", indent: -1, content: "text")
     22   end
     23 
     24 defmodule Indent  do
     25     @moduledoc false
     26     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, level: 0, content: "text")
     27   end
     28 
     29 defmodule Fence  do
     30     @moduledoc false
     31     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, delimiter: "~ or `", language: nil)
     32   end
     33 
     34 defmodule HtmlOpenTag  do
     35     @moduledoc false
     36     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, tag: "", content: "")
     37   end
     38 
     39 defmodule HtmlCloseTag  do
     40     @moduledoc false
     41     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, tag: "<... to eol")
     42   end
     43 defmodule HtmlComment  do
     44     @moduledoc false
     45     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, complete: true)
     46   end
     47 
     48 defmodule HtmlOneLine  do
     49     @moduledoc false
     50     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, tag: "", content: "")
     51   end
     52 
     53 defmodule IdDef  do
     54     @moduledoc false
     55     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, id: nil, url: nil, title: nil)
     56   end
     57 
     58 defmodule FnDef  do
     59     @moduledoc false
     60     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, id: nil, content: "text")
     61   end
     62 
     63 defmodule ListItem do
     64     @moduledoc false
     65     defstruct(
     66       annotation: nil,
     67       ial: nil,
     68       lnb: 0,
     69       type: :ul,
     70       line: "",
     71       indent: -1,
     72       bullet: "* or -",
     73       content: "text",
     74       initial_indent: 0,
     75       list_indent: 0
     76     )
     77   end
     78 
     79 defmodule SetextUnderlineHeading  do
     80     @moduledoc false
     81     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, level: 1)
     82   end
     83 
     84 defmodule TableLine  do
     85     @moduledoc false
     86     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, content: "", columns: 0, is_header: false, needs_header: false)
     87   end
     88 
     89 defmodule Ial  do
     90     @moduledoc false
     91     defstruct(annotation: nil, ial: nil, lnb: 0, line: "", indent: -1, attrs: "", verbatim: "")
     92   end
     93 defmodule Text  do
     94     @moduledoc false
     95     defstruct(annotation: nil, lnb: 0, line: "", indent: -1, content: "")
     96   end
     97 end
     98 # SPDX-License-Identifier: Apache-2.0