Skip to content

Commit

Permalink
Remove unused regular expressions for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jrblevin committed May 9, 2016
1 parent 0172b7d commit 12c2186
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions markdown-mode.el
Expand Up @@ -1286,38 +1286,6 @@ Group 4 matches the opening hash marks of an atx heading.
Group 5 matches the text, without surrounding whitespace, of an atx heading.
Group 6 matches the closing hash marks of an atx heading.")

(defconst markdown-regex-header-1-atx
"^\\(#\\)[ \t]+\\(.*?\\)[ \t]*\\(#*\\)$"
"Regular expression for level 1 atx-style (hash mark) headers.")

(defconst markdown-regex-header-2-atx
"^\\(##\\)[ \t]+\\(.*?\\)[ \t]*\\(#*\\)$"
"Regular expression for level 2 atx-style (hash mark) headers.")

(defconst markdown-regex-header-3-atx
"^\\(###\\)[ \t]+\\(.*?\\)[ \t]*\\(#*\\)$"
"Regular expression for level 3 atx-style (hash mark) headers.")

(defconst markdown-regex-header-4-atx
"^\\(####\\)[ \t]+\\(.*?\\)[ \t]*\\(#*\\)$"
"Regular expression for level 4 atx-style (hash mark) headers.")

(defconst markdown-regex-header-5-atx
"^\\(#####\\)[ \t]+\\(.*?\\)[ \t]*\\(#*\\)$"
"Regular expression for level 5 atx-style (hash mark) headers.")

(defconst markdown-regex-header-6-atx
"^\\(######\\)[ \t]+\\(.*?\\)[ \t]*\\(#*\\)$"
"Regular expression for level 6 atx-style (hash mark) headers.")

(defconst markdown-regex-header-1-setext
"^\\(.*\\)\n\\(=+\\)$"
"Regular expression for level 1 setext-style (underline) headers.")

(defconst markdown-regex-header-2-setext
"^\\(.*\\)\n\\(-+\\)$"
"Regular expression for level 2 setext-style (underline) headers.")

(defconst markdown-regex-header-setext
"^\\([^\r\n-].*\\)\n\\(=+\\|-+\\)$"
"Regular expression for generic setext-style (underline) headers.")
Expand Down

0 comments on commit 12c2186

Please sign in to comment.