InteractionDesignFoundation/nova-html-card

Minor CSS issues when using withBasicStyles - hr, blockquote, and ol

Closed this issue · 5 comments

  • Package Version: 3.2.0
  • Nova Version: 4.3.15
  • PHP Version: 8.3.x

Description:

There's some minor CSS issues when rendering HTML/Markdown usng the withBasicStyles options: Horizontal rules have no margin so they stack on top of each other, Blockquotes don't indent, and ordered lists have no numbering.

Screenshot 2024-03-12 at 09 46 32 Screenshot 2024-03-12 at 09 46 58 Screenshot 2024-03-12 at 09 46 47

Steps To Reproduce:

Here's some example markdown that will generate the screenshots above.


## Horizontal Rules

___

---

***

## Blockquotes


> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.


Ordered

1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa

1. You can use sequential numbers...
1. ...or keep all the numbers as `1.`

Start numbering with offset:

57. foo
1. bar

Happy to raise a little PR to address these issues.

Here's some screenshots of the fixes as provided in #31

Screenshot 2024-03-12 at 09 58 47 Screenshot 2024-03-12 at 09 58 56 Screenshot 2024-03-12 at 09 59 07

Hey @bluec

Nova Version: 4.3.15

Just out of curiosity, why do you use such an old Nova version (and new PHP version at the same time)? Your answer may help me to understand the requirements for our Nova packages.

And thank you for your PR!

Hey @bluec

Nova Version: 4.3.15

Just out of curiosity, why do you use such an old Nova version (and new PHP version at the same time)? Your answer may help me to understand the requirements for our Nova packages.

And thank you for your PR!

I think you have misread or misunderstood. That version of Nova was released less than 3 weeks ago: https://nova.laravel.com/releases

@bluec
You probably mean v4.32.15, right? :)

@bluec You probably mean v4.32.15, right? :)

Ha yes well spotted