From: Roberto A. <ra...@ne...> - 2013-09-14 14:19:19
|
On 13/09/13 18:57, Eman Amini wrote: > Hi there. I want to ask is there anyway which I can write a html code > inside reStructuredText and Nikola doesn't change it? > For instance I want to put a code like this: > > <h2>Heading number 2</h2> > > Then Nikola copy the exact code in FILENAME.html. > > Pay attention That I do not want to add raw code which would show the > exact code on browsers. > > As another instance I want to align a text in right side. > But reStructuredText doesn't provide feature that I need. > So is there anyway that I can add this HTML code in reStructuredText: > <P align="right">THIS IS A PHRASE</P> > And Nikola insert this code in OUTPUT.html so browsers will show "THIS > IS A PHRASE" in the right side. > > Do I need to explain more what I mean? > The "do not wat to add raw code" is the part that confuses me because this is exactly what raw does :-) .. raw:: html <h2>Heading number 2</h2> should do what you want. Alternatively for things like the other example, you can use class: .. class:: right THIS IS A PHRASE Of course then you need to define a class "right" in your CSS that does what you want. For example, putting this in files/assets/css/custom.css should "just work" .right { text-align: right;} |