Hi everyone,
 I recently learned that pandoc does not read \abstract{} as raw text but as metadata.
But when I try to convert a Latex file into markdown with standalone parameter, the abstract does not appear in YAML metadata headers. I cant use lua filters in any manner, because the abstract does not even appear in abstract syntax tree.

Is this an intended outcome or I am missing out on something. If so how can I get the abstract content in YAML metadata.

source file (example.tex):

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\author{Abhishek U}
\title{\pkg{texor} Hello}
\abstract{This is a sample abstract that must be included in the
converted document.
This is multiline example.
}
\begin{document}
\maketitle
Hello world \pkg{texor}
\end{document}

The command for ast

pandoc +RTS -K512m -RTS example.tex --to native --output example-ast.txt -s  --citeproc

The command for markdown:

pandoc +RTS -K512m -RTS example.tex --to markdown --output example.md -s   --citeproc

pandoc version 2.18

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/08b609d9-c982-4f4c-8606-95dd377fae4cn%40googlegroups.com.