diff options
author | anekos | 2009-02-05 11:27:46 +0000 |
---|---|---|
committer | anekos | 2009-02-05 11:27:46 +0000 |
commit | 925f3ebcf4ff9ebdad1e104feb7d131bf0a6c765 (patch) | |
tree | b0b7fafabb6a7cf4120661e2d044ae0393a0c169 /pluginManager.js | |
parent | d6d304e1d3a82f713b30f5cc6401e5b132bd0101 (diff) | |
download | vimperator-plugins-925f3ebcf4ff9ebdad1e104feb7d131bf0a6c765.tar.bz2 |
スタイルを付加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29578 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'pluginManager.js')
-rw-r--r-- | pluginManager.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pluginManager.js b/pluginManager.js index ce9b17a..b8fc05a 100644 --- a/pluginManager.js +++ b/pluginManager.js @@ -505,7 +505,8 @@ var WikiParser = (function () { return function (st) { let m = st.head.match(re); if (m) { - return st.next.set(stripAndLink(m[1])).wrap('h' + n); + let hn = 'h' + n; + return st.next.set(<{hn} style={'font-size:'+(0.75+1/n)+'em'}>{stripAndLink(m[1])}</{hn}>) } else { return Error('not head1', st); } @@ -544,7 +545,7 @@ var WikiParser = (function () { function dt (st) { let m = st.head.match(/^(\s*)(.+):\s*$/); if (m) { - return st.next.set([m[1], <dt>{m[2]}</dt>]); + return st.next.set([m[1], <dt style="font-weight:bold;">{m[2]}</dt>]); } else { return Error('not dt', st); } |