Skip to content

v1.0.0-alpha.16

Pre-release
Pre-release
Compare
Choose a tag to compare
@PeachScript 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 the transform frontmatter, code block modifier and code tag property, use to switch transform: translate(0, 0) for demo wrapper element to change CSS containing block (catch fixed 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.