bowman2001 / perplex

A Hugo theme to publish technical content (docs, news, blog, articles)
https://perplex.desider.at
Apache License 2.0
27 stars 11 forks source link

Fix avoiding p-in-p when existing p has attribute #131

Closed danielfdickinson closed 9 months ago

danielfdickinson commented 9 months ago

When a Markdown block has an attribute:

Sample paragraph. It's really short {.p-first}

we can't just search for \

because it will be a \

. We can, however, search for the closing tag \

instead and this resolves the issue.

Closes #129

sonarcloud[bot] commented 9 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

danielfdickinson commented 9 months ago

Glad I could help. Hope you don't mind all my writing yesterday!