# HG changeset patch # User wenzelm # Date 1444909727 -7200 # Node ID 25e40e78f6d47697160dbbdbb47f873deb15bd41 # Parent 7cf8b604280f21cd374dbd76c05c72ca6ac98e22 more comments; diff -r 7cf8b604280f -r 25e40e78f6d4 src/Pure/Thy/markdown.ML --- a/src/Pure/Thy/markdown.ML Thu Oct 15 13:28:48 2015 +0200 +++ b/src/Pure/Thy/markdown.ML Thu Oct 15 13:48:47 2015 +0200 @@ -1,7 +1,20 @@ (* Title: Pure/Thy/markdown.ML Author: Makarius -Minimal support for Markdown documents (see also http://commonmark.org). +Minimal support for Markdown documents (see also http://commonmark.org) +that consist only of paragraphs and (nested) lists: + + * list items start with marker \<^item> (itemize), \<^enum> (enumerate), \<^descr> (description) + * adjacent list items with same indentation and same marker are grouped + into a single list + * singleton blank lines separate paragraphs + * multiple blank lines escape from the current list hierarchy + +Notable differences to official Markdown: + + * indentation of list items needs to match exactly + * indentation is unlimited (Markdown interprets 4 spaces as block quote) + * list items always consist of paragraphs -- no notion of "tight" list *) signature MARKDOWN =