# Paragraphs

Text
  First paragraph,
  continued.

  Second paragraph.

==>

Docstring(Section(Keyword, Prose))

# Inline Macaulay2

Text
  See @TO "foo"@ and @TT "x"@.

==>

Docstring(Section(Keyword, Prose(InlineCode, InlineCode)))

# Inline Macaulay2 across lines

Text
  See @TO2(foo,
    "bar")@.

==>

Docstring(Section(Keyword, Prose(InlineCode)))

# Escaped at sign

Text
  user\@example.com and @TO symbol \@@

==>

Docstring(Section(Keyword, Prose(Escape, InlineCode)))

# Math

Text
  $x$, $$y$$, \(z\), and \[w\]

==>

Docstring(Section(Keyword, Prose(Math, Math, Math, Math)))

# Unmatched TeX delimiters are text

Text
  costs $5, and \([0, \infty\]), and a \

==>

Docstring(Section(Keyword, Prose))

# Math stays on one line

Text
  $a
  b$

==>

Docstring(Section(Keyword, Prose))

# Dashes in prose are text

Text
  a -- b, and a---b

==>

Docstring(Section(Keyword, Prose))

# Unmatched at sign

Text
  a @ b

==>

Docstring(Section(Keyword, Prose(⚠)))

# TeX formatting

Text
  {\bf bold}, {\em em}, {\it italic}, {\tt mono}, and \url{https://macaulay2.com}

==>

Docstring(Section(Keyword, Prose(Bold, Em, Italic, TT, HREF)))

# TeX formatting with nested braces

Text
  {\tt f(\{1, 2\})} and {\bf a {b} c}

==>

Docstring(Section(Keyword, Prose(TT, Bold)))

# TeX formatting does not hold @...@

Text
  {\tt see @TO x@}

==>

Docstring(Section(Keyword, Prose(InlineCode)))

# Unmatched TeX formatting is text

Text
  {\bf open, {\em
  across} lines, \upsilon, and {plain}

==>

Docstring(Section(Keyword, Prose))

# A prose section led by Tree is a menu

Acknowledgement
  Tree
    :Funding
      * foo
Text
  Not a menu.
  Tree

==>

Docstring(
  Section(Keyword, Keyword,
    Entry(Marker, Prose,
      Entry(Marker, Program(Identifier)))),
  Section(Keyword, Prose))
