I am new to docutils. I apologize if this is a dopey question; I have =
looked over the recent emails and gotten the latest version but I'm =
still a bit stuck.
I'd like to add a directive so that this string in the text=20
.. pkg:: xxx
when output as html will yield this.=20
Are directives the way to go here?
I thought to start with the Image example and morph it into what I want. =
I copied the definition of Image from the web page into a file, along =
with html_body() and html_parts() from example.py. I also put the line
(both with and without quotes on the 'Image', although in the =
appropriate __init__.py it has quotes, so I think that is right).
Now I expected that when I run the below then I would get an <img > tag.
s=3Du"""My bonnie lies over the *ocean*.
My bonnie lies over the sea. .. img:: john.jpg
- Bring back
- Bring back
Bring back my bonnie to me.
But instead it gives this.
result: u'<div class=3D"document">\n<p>My bonnie lies over the =
<em>ocean</em>.\nMy bonnie lies over the sea. .. img:: =
john.jpg</p>\n<ul class=3D"simple">\n<li>Bring back</li>\n<li>Bring =
back</li>\n</ul>\n<p>Bring back my bonnie to me.</p>\n</div>\n'
I wonder if someone could give me a hint: am I way off base? Is there a =
natural way for me to accomplish that I want with ".. pkg:: xxx" ?
Get latest updates about Open Source Projects, Conferences and News.