From 200c91d8bfcfc070384a3084db26cd49c40c3738 Mon Sep 17 00:00:00 2001 From: Mitsuru Kariya Date: Fri, 15 Apr 2016 02:12:45 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E3=82=A8=E3=82=B9=E3=82=B1=E3=83=BC=E3=83=97=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 7611587..a1f11c1 100755 --- a/run.py +++ b/run.py @@ -135,6 +135,7 @@ def target_paths(): _HASH_HEADER_RE = re.compile(r'^( *?\n)*#(?P
.*?)#*(\n|$)(?P(.|\n)*)', re.MULTILINE) _SETEXT_HEADER_RE = re.compile(r'^( *?\n)*(?P
.*?)\n=+[ ]*(\n|$)(?P(.|\n)*)', re.MULTILINE) +_REMOVE_ESCAPE_RE = re.compile(r'\\(.)') def split_title(md): @@ -166,7 +167,7 @@ def split_title(md): m = _SETEXT_HEADER_RE.match(md) if m is None: return None, md - return m.group('header').strip(), m.group('remain') + return _REMOVE_ESCAPE_RE.sub(r'\1', m.group('header').strip()), m.group('remain') def get_meta(md):