aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2bbcode.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-12-20 11:11:18 +0100
committerMario Vavti <mario@mariovavti.com>2017-12-20 11:11:18 +0100
commit73766caa81b2cf2604f5343c41df0a33da8795f8 (patch)
tree7ed60f02756ec3e97684dc6a7b4d6ba94ef2c8cc /include/html2bbcode.php
parentd92ceed73741f0884bfef3752c17ea4bf135e436 (diff)
downloadvolse-hubzilla-73766caa81b2cf2604f5343c41df0a33da8795f8.tar.gz
volse-hubzilla-73766caa81b2cf2604f5343c41df0a33da8795f8.tar.bz2
volse-hubzilla-73766caa81b2cf2604f5343c41df0a33da8795f8.zip
html2bbcode: use headings bbcode for headings
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r--include/html2bbcode.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index d7fbd8660..f67231847 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -196,12 +196,12 @@ function html2bbcode($message)
//node2bbcode($doc, 'tr', array(), "[tr]", "[/tr]");
//node2bbcode($doc, 'td', array(), "[td]", "[/td]");
- node2bbcode($doc, 'h1', array(), "\n\n[size=xx-large][b]", "[/b][/size]\n");
- node2bbcode($doc, 'h2', array(), "\n\n[size=x-large][b]", "[/b][/size]\n");
- node2bbcode($doc, 'h3', array(), "\n\n[size=large][b]", "[/b][/size]\n");
- node2bbcode($doc, 'h4', array(), "\n\n[size=medium][b]", "[/b][/size]\n");
- node2bbcode($doc, 'h5', array(), "\n\n[size=small][b]", "[/b][/size]\n");
- node2bbcode($doc, 'h6', array(), "\n\n[size=x-small][b]", "[/b][/size]\n");
+ node2bbcode($doc, 'h1', array(), "\n\n[h1]", "[/h1]\n");
+ node2bbcode($doc, 'h2', array(), "\n\n[h2]", "[/h2]\n");
+ node2bbcode($doc, 'h3', array(), "\n\n[h3]", "[/h3]\n");
+ node2bbcode($doc, 'h4', array(), "\n\n[h4]", "[/h4]\n");
+ node2bbcode($doc, 'h5', array(), "\n\n[h5]", "[/h5]\n");
+ node2bbcode($doc, 'h6', array(), "\n\n[h6]", "[/h6]\n");
node2bbcode($doc, 'a', array('href'=>'/(.+)/'), '[url=$1]', '[/url]');