aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/action_text/plain_text_conversion.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_text/plain_text_conversion.rb b/lib/action_text/plain_text_conversion.rb
index c9867bd8c9..ea168f1c4e 100644
--- a/lib/action_text/plain_text_conversion.rb
+++ b/lib/action_text/plain_text_conversion.rb
@@ -29,7 +29,7 @@ module ActionText
"#{remove_trailing_newlines(plain_text_for_node_children(node))}\n\n"
end
- %i[ p ul ol ].each do |element|
+ %i[ h1 p ul ol ].each do |element|
alias_method :"plain_text_for_#{element}_node", :plain_text_for_block
end