Languages like Creole, reStructuredText, Markdown, and others allow headings
= Food
== Fruit
=== Apples
and numbered lists
# Food
# Food 2
but I want something that can give me headings I can refer to by number.
Like this type of output:
1. Food
1.1. Fruit
1.2. Vegetables
Are there any that can do this?
To provide a specific example following up on my comment, consider the options available for pandoc:
So do you want LaTeX, ConTeXt, HTML, or EPUB output? If so, then any of the languages pandoc supports will do. ( markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, OPML, Emacs Org-Mode, Txt2Tags, Microsoft Word docx, LibreOffice ODT, EPUB, or Haddock markup)