I’m trying to make a hanging indent to publish MLA and Chicago-formatted bibliographic references on my Hugo site. In the .css, I’ve created a new selector to perform MLA-formatted indentation of references:
If I put the following code in my markdown, I get the line spacing and indentation I want, but the asterisks used to create italics become literals, as if they are escaped.
So the code below produces…
<p class="p2"> Greely, Fred, Mary Jones, and Greg Attiks. *There's a Bat in My Barn: Struggles with the New Hampshire Brown Bat*. Wildlife Press, 2012.</p>
However, if I use a line separating the paragraph class and the content, I get the markdown styling but not the spacing.
So the code below produces . . .
<p class="p2">
Greely, Fred, Mary Jones, and Greg Attiks. *There's a Bat in My Barn: Struggles with the New Hampshire Brown Bat*. Wildlife Press, 2012.
</p>
{{< biblio-ref >}}
Greely, Fred, Mary Jones, and Greg Attiks. *There's a Bat in My Barn: Struggles with the New Hampshire Brown Bat*. Wildlife Press, 2012.
{{< /biblio-ref >}}