Centering text/pictures with markdown and pandoc - Stack Overflow
Think of markdown as a nicer syntax for HTML – it's only the content, no styling. (Centering would be styling.) You cannot center text in HTML either. But you can add classes, then style them with CSS (in your Hakyll theme).
Pandoc markdown currently supports attributes on images:
![](img.jpg){.myClass}
but not paragraphs, however you can wrap stuff in div
s:
# my markdown header <div class="myClass"> one paragraph second paragraph, **strong** </div>
Read full article from Centering text/pictures with markdown and pandoc - Stack Overflow
No comments:
Post a Comment