v1.0.0-alpha.16
Pre-release
Pre-release
PeachScript
released this
17 Jan 04:24
·
1835 commits
to master
since this release
Features
- Support to write frontmatters in the embedded demo
Breaking Change (maybe a half)
- Support to configure
transform
CSS property via thetransform
frontmatter, code block modifier andcode
tag property, use to switchtransform: translate(0, 0)
for demo wrapper element to change CSS containing block (catchfixed
element), the following ways to do the same thing:
``` jsx /** * transform: true */ // source code ```
``` jsx | transform // source code ```
<code src="path/to/demo" transform>
In the previous versions, the transform: translate(0, 0)
is enable by default, but in the v1.0.0-alpha.16
it is not, so if you have been write a demo that contains fixed
element, and you still want to position it according to the demo wrapper element, you need to enable transform
via the above ways after upgrade.