diff --git a/build/index.php b/build/index.php
index 0f043ce..65b5a16 100644
--- a/build/index.php
+++ b/build/index.php
@@ -1945,7 +1945,7 @@ register_module([
class Slimdown {
public static $rules = array (
'/\r\n/' => "\n", // new line normalisation
- '/(#+)(.*)/' => 'self::header', // headers
+ '/^(#+)(.*)/' => 'self::header', // headers
'/(\*)(.*?)\1/' => '\2', // bold
'/(_)(.*?)\1/' => '\2', // emphasis
diff --git a/module_index.json b/module_index.json
index 87dd225..917fa0e 100644
--- a/module_index.json
+++ b/module_index.json
@@ -149,7 +149,7 @@
"author": "Johnny Broadway & Starbeamrainbowlabs",
"description": "The default parser for Pepperminty Wiki. Based on Johnny Broadway's Slimdown (with more than a few modifications). This parser's features are documented in the help page.",
"id": "parser-default",
- "lastupdate": 1443945169,
+ "lastupdate": 1443964067,
"optional": false
},
{
diff --git a/modules/parser-default.php b/modules/parser-default.php
index 16e3c31..6f335ea 100644
--- a/modules/parser-default.php
+++ b/modules/parser-default.php
@@ -50,7 +50,7 @@ register_module([
class Slimdown {
public static $rules = array (
'/\r\n/' => "\n", // new line normalisation
- '/(#+)(.*)/' => 'self::header', // headers
+ '/^(#+)(.*)/' => 'self::header', // headers
'/(\*)(.*?)\1/' => '\2', // bold
'/(_)(.*?)\1/' => '\2', // emphasis