Tue, 10 Jan 2006
reStructuredTextの初期ヘッダレベルを変えるには
つ http://downward.dyndns.org/web/pyblosxom/2005-10-10-18-38
というだけなのもアレなので...rest.pyのparse()を変更:
def parse(story):
html = publish_string(story, writer_name='html',
settings_overrides={'initial_header_level':5})
return html[html.find('<body>') + 6:html.find('</body>')]
publish_stringのsettings_overridesて引数で初期設定を変えられるわけでございますです。
[Tech] 01:52 | リンク |
search
Syndicate
Twitter Log @bravotan
Outer Syndicate
/.J journal
del.icio.us
del.icio.us Ura5han network
Calendar
| < |
January 2006 |
> |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | | | | |
Tag Cloud
Categories
Schedule
Another
About
取り扱い内容: 何を食ったか、WebやPythonの小ネタを中心としたOSSな技術ネタ、内輪ネタ。
タイトルはKuro5hinにインスパイヤされたものであり、「nick-prefix + 5han」というnickがIRCで流行していたのと、「うらごう + ごはん」で「Ura5han」であり、決してOSS等の利用をなんら制限するものではございません。
Contact
不具合とか見つかったら
ココ.へ。
Links
Copyright © 2012 Ura5han, Keisuke URAGO All Rights Reserved.