Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: custom list markers #3912

Open
dsanson opened this issue Sep 10, 2017 · 1 comment
Open

Feature request: custom list markers #3912

dsanson opened this issue Sep 10, 2017 · 1 comment

Comments

@dsanson
Copy link

dsanson commented Sep 10, 2017

Extend the syntax for example lists to allow the author to specify the marker instead of letting
it be determined automatically. E.g, something like:

(@=P1). All men are mortal. 
(@=P2). Socrates is a  man. 
(@=C).  Socrates is mortal. 

And then refer back later to premise (@P2). 

would generate something like:

\begin{itemize}
\item[P1]\label{P1}
All men are mortal.
\item[P2]\label{P2}
Socrates is a man.
\item[C]\label{C}
Scorates is mortal.
\end{itemize}

And then refer back later to premise (\ref{P2}). 

For a bit more discussion, including some other suggested syntaxes, see https://groups.google.com/d/msgid/pandoc-discuss/c89be225-fd55-410f-abd3-7c5f2108d061@googlegroups.com?utm_medium=email&utm_source=footer

@brainchild0
Copy link

This support would be very useful. Currently, definition lists are supported, the similarity already noted in the mailing list discussion, but have a different desired appearance than that of lists of the kind currently suggested, both in Markdown source and published output.

Since the AST type definitions would be essentially the same in both cases, the DefinitionList type might simply be generalized to something like LabelList, with the stylization difference being resolved separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants