From 925f3ebcf4ff9ebdad1e104feb7d131bf0a6c765 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 5 Feb 2009 11:27:46 +0000 Subject: スタイルを付加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29578 d0d07461-0603-4401-acd4-de1884942a52 --- pluginManager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pluginManager.js') 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],