From a21640429ceef89f4b1b1d181c6ea92ac6b1bc27 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 9 Sep 2016 16:41:03 -0700 Subject: [PATCH] add dtext prefix to header id in ruby dtext parser --- app/logical/d_text.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index 3cfa4ad77..269812418 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -225,9 +225,9 @@ class DText content = $3 if options[:inline] - "
" + parse_inline(content, options) + "
" + "
" + parse_inline(content, options) + "
" else - "<#{tag} id=\"#{header_id}\">" + parse_inline(content, options) + "" + "<#{tag} id=\"dtext-#{header_id}\">" + parse_inline(content, options) + "" end when /^\s*\*+ / parse_list(block, options)