fix for horizontal rule rendering in plainterm

This commit is contained in:
Yessiest 2025-03-10 02:38:10 +04:00
parent 5a302976aa
commit 74edbf603e
2 changed files with 21 additions and 1 deletions

View File

@ -165,6 +165,12 @@ module MMMD
TEXT
end
# Draw a horizontal rule
def hrule(_text, options)
size = options[:hsize]
" #{'─' * (size - 2)} "
end
# Draw text right-justified
def rjust(text, options)
size = options[:hsize]
@ -314,11 +320,12 @@ module MMMD
increase_level: true
},
"PointBlank::DOM::HorizontalRule" => {
underline_full_block: true
hrule: true
}
}.freeze
DEFAULT_EFFECT_PRIORITY = {
hrule: 10_500,
numbered: 10_000,
leftline: 9500,
bullet: 9000,

13
test.md Normal file
View File

@ -0,0 +1,13 @@
Jabronicle Mitch's wild ride
============================
crusty cocks
-------------
- DIIIIICKS
- - let
- me
- smell
- your
- dick