Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pv-stylemark): fix regex extracting css code block #223

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

mbehzad
Copy link
Contributor

@mbehzad mbehzad commented Apr 11, 2024

the regexes where expecting always an empty space after .css which is only the case when a hidden attribute is used, it allowed for the info string to come on the next line as the code fence, only allowed ../ but not ./

== Description ==

== Closes issue(s) ==

== Changes ==

== Affected Packages ==

mbehzad and others added 6 commits April 5, 2024 12:51
the regexes where expecting always an empty space after .css which is only the case when a hidden
attribute is used, it allowed for the info string to come on the next line as the code fence, only
allowed ../ but not ./
…tyleguide to the new stlymark

this will allow in multi-tenant codebases for easier distinguishing between component with the same
name
…ithout modification

introduce the `raw` option that can be set via params of the code block, front matter of the
markdown or config.stlyemark.yaml's `examples` section and won't wrap the markup with `htmlHead`,
`bodyHtml` etc from the config when set.
 Also introduce a new experimental pattern for how the
code blocks can be written to be picked up by the stylemark. i.e. `css example-1 hidden` or `html
example-1 ./demo/file.html?foo=bar#anchor raw=true hidden`

fix #227
feat(pv-stylemark): add info regarding the source of the components s…
…code-blocks--scripts

feat(pv-stylemark): add suport for js and html executable code blocks support the hidden attribute
@friewerts friewerts merged commit a35c060 into develop Apr 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants