Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add em and strong to idgxml #1353

Merged
merged 1 commit into from
Aug 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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