Skip to content

Commit

Permalink
add em and strong to idgxml.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Aug 11, 2019
1 parent 68737e9 commit bf5120c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/review/idgxmlbuilder.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2008-2018 Minero Aoki, Kenshi Muto
# Copyright (c) 2008-2019 Minero Aoki, Kenshi Muto
# 2002-2007 Minero Aoki
#
# This program is free software.
Expand All @@ -16,7 +16,9 @@ class IDGXMLBuilder < Builder
include TextUtils
include HTMLUtils

%i[ttbold hint maru keytop labelref ref].each { |e| Compiler.definline(e) }
%i[ttbold hint maru keytop labelref ref strong em].each do |e|
Compiler.definline(e)
end
Compiler.defsingle(:dtp, 1)

Compiler.defblock(:insn, 0..1)
Expand Down Expand Up @@ -691,6 +693,14 @@ def inline_b(str)
%Q(<b>#{escape(str)}</b>)
end

def inline_em(str)
%Q(<em>#{escape(str)}</em>)
end

def inline_strong(str)
%Q(<strong>#{escape(str)}</strong>)
end

def inline_tt(str)
%Q(<tt>#{escape(str)}</tt>)
end
Expand Down

0 comments on commit bf5120c

Please sign in to comment.