lib/stepmod/utils/converters/strong.rb in stepmod-utils-0.4.10 vs lib/stepmod/utils/converters/strong.rb in stepmod-utils-0.4.11
- old
+ new
@@ -18,10 +18,12 @@
content = treat_children(cloned_node, state.merge(already_strong: true))
equation_content = equations.map do |equation|
treat(equation, state.merge(equation: true, already_strong: true))
end
- content = if content.strip.empty? || state[:already_strong] || state[:equation]
+ content = if state[:equation] && state[:convert_bold_and_italics]
+ "bb(#{content.strip})"
+ elsif content.strip.empty? || state[:already_strong] || state[:equation]
content
else
strong_tag = state[:non_flanking_whitesapce] ? '**' : '*'
handle_express_escape_seq(
node,