Re: Output format argument for meta directive

engelbert gruber <[email protected]> Mon, 17 Aug 2020 09:46:10 +0200
Newsgroups gmane.text.docutils.user,gmane.text.docutils.devel
Message-ID <CAHnbgBNdhmsxSue0gLpDwNsgtOBsNHEeOx91snnxdm+bPaSs3g@mail.gmail.com>
hei

i assume the meta directive is only in html, because it stems from html

to get a better understanding of what we are doing, use cases would be very
helpful

cheers

On Wed, 12 Aug 2020 at 10:09, Rickard Armiento <[email protected]>
wrote:

> Hi,
>
> I've been working on a set of transformations of reST to various output,
> most notably to reveal.js-based slides (I have a repo at
> https://github.com/rartino/httk-rsttools - but it is still very much
> work in progress.)
>
> In the 'Directives' documentation file, the meta directive is presently
> the only implemented directive under the 'HTML-Specific' headline and
> its description is indeed very HTML-specific.
>
> I have multiple times found myself looking for a way to include metadata
> in my source documents for use in other contexts and for other output
> formats, and thus found the HTML-only nature of meta inelegant.
>
> Is there a reason the 'meta' directive doesn't take an output format
> argument, making it possible to use it for meta-data in contexts also
> outside HTML? I.e., to make it work much like the argument to the 'raw'
> directive, e.g.:
>    .. meta:: pdf
>
> Is this something that could be considered for inclusion in the reST
> standard?
>
> Best,
> Rickard
>
>
> _______________________________________________
> Docutils-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/docutils-users
>
> Please use "Reply All" to reply to the list.
>