Showing
2 changed files
with
5 additions
and
2 deletions
| ... | ... | @@ -286,7 +286,10 @@ module Kanjai |
| 286 | 286 | elsif item[:name] == 'p' |
| 287 | 287 | if item[:children].count > 0 |
| 288 | 288 | #subparts << "<p>#{self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe}</p>" |
| 289 | - subparts.p(attributes, self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe) | |
| 289 | + #subparts.p(attributes, self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe) | |
| 290 | + subparts.send(item[:name], attributes) do |next_subparts| | |
| 291 | + next_subparts << self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe | |
| 292 | + end | |
| 290 | 293 | end |
| 291 | 294 | else |
| 292 | 295 | subparts.send(item[:name], attributes) do |next_subparts| | ... | ... |