Skip to content

Commit

Permalink
Merge pull request #1353 from kmuto/idgxml-em-strong
Browse files Browse the repository at this point in the history
add em and strong to idgxml
  • Loading branch information
kmuto authored Aug 11, 2019
2 parents 68737e9 + bf5120c commit 3d8612b
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 3d8612b

Please sign in to comment.