Here's a half-baked idea: When the input language is markdown+lhs, allow #-style header to begin with a blank space.  Then ghc will treat such lines as comments, while pandoc will treat them as headers.

Thoughts?

   - Conal

On Thu, Nov 11, 2010 at 7:49 PM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
+++ Conal Elliott [Nov 11 10 12:19 ]:
>    Does anyone know how to use #-style markdown headers without ghc
>    choking on them (as preprocessor directives)? I can use the underline
>    variant for 1st & 2nd level headings ("-----" and "====="), but I often
>    like more deeply nested headings.
>    Thanks,  - Conal

As far as I know, there's no way to do this, which is irritating.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pandoc-discuss?hl=en.


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pandoc-discuss?hl=en.