a simple markdown editor

This commit is contained in:
2023-01-22 15:20:38 +02:00
parent accb668267
commit 6e5a871238
2 changed files with 34 additions and 0 deletions

View File

@ -13,6 +13,7 @@ module Merged
text = text.text unless text.is_a?(String)
return 5 if text.blank?
rows = (text.length / 50).to_i
rows += text.count("\n")
return 5 if rows < 5
rows
end