Documentation

Lean.DocString.Markdown

The surrounding context of Markdown that's being generated, in order to prevent nestings that Markdown doesn't allow.

  • inEmph : Bool

    The current code is inside emphasis.

  • inBold : Bool

    The current code is inside strong emphasis.

  • linePrefix : String

    The prefix that should be added to each line (typically for indentation).

Instances For

    The state of a Markdown generation task.

    • priorBlocks : String

      The blocks prior to the one being generated.

    • currentBlock : String

      The block being generated.

    • footnotes : Array (String × String)

      Footnotes

    Instances For
      @[reducible, inline]

      The monad for generating Markdown output.

      Equations
      Instances For
        def Lean.Doc.MarkdownM.run {α : Type} (act : MarkdownM α) (context : Context := { }) (state : State := { }) :

        Generates Markdown, rendering the result from the final state.

        Equations
        Instances For
          def Lean.Doc.MarkdownM.run' (act : MarkdownM Unit) (context : Context := { }) (state : State := { }) :

          Generates Markdown, rendering the result from the final state, without producing a value.

          Equations
          Instances For

            Adds a string to the current Markdown output.

            Equations
            Instances For

              Increases the indentation level by one.

              Equations
              Instances For
                class Lean.Doc.ToMarkdown (α : Type u) :

                A means of transforming values to Markdown representations.

                • toMarkdown : αMarkdownM Unit

                  A function that transforms an α into a Markdown representation.

                Instances

                  A way to transform inline elements extended with i into Markdown.

                  Instances
                    Equations
                    • One or more equations did not get rendered due to their size.
                    class Lean.Doc.MarkdownBlock (i : Type u) (b : Type v) :
                    Type (max u v)

                    A way to transform block elements extended with b that contain inline elements extended with i into Markdown.

                    Instances
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Equations
                      • One or more equations did not get rendered due to their size.