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

Adding syntax for role parameters [SF:feature-requests:68] #581

Open
chrisjsewell opened this issue Aug 9, 2020 · 0 comments
Open

Adding syntax for role parameters [SF:feature-requests:68] #581

chrisjsewell opened this issue Aug 9, 2020 · 0 comments

Comments

@chrisjsewell
Copy link
Owner

author: ener
created: 2020-01-31 23:28:53.013000
assigned: None
SF_url: https://sourceforge.net/p/docutils/feature-requests/68

Hello Docutils team,

Sometimes I would like to pass options to role functions for adding domain-specific metadata. For example,

For citation page numbers:

As discussed in :cite:[p.99]`knuth1968`, the implementation ...

In a cookbook:

If you like, add some :liquid-ingredient:[20ml, spicyness=7]`Tabasco sauce`. 

As discussed in this Docutils mailing-list thread, AsciiDoc uses a syntax like this:

Click image:icons/play.png[Play, title="Play"] to get the party started.

I like the idea of passing positional and named options in brackets.

Is there a possibility of Docutils supporting this feature?

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

1 participant