Determine the file type / processor within template

I have some CSS that is needed for markdown but not for asciidoc. It would be great if there would be a template variable telling me which processor is used (or the filename extension).

With a variable like .Markup or .FileExt templates could alter their look to fit better with some of the quirks the different processors bring with them.

Try {{ .Markup }}

The variable is empty in both cases with hugo 0.15

OK; yes, it’s only set if you set it. A way to override the file extension.

I see. So maybe then the feature request here is to set .Markup template variable even if it was determined automatically and not explicitely set by the user.

Yes, that makes sense – but you would have to create that feature request at GitHub.

Thank you for your help.