Skip to content

Commit 4b17d5c

Browse files
committed
Use lists instead of regexes
- moved from regex to list of valid attributes and properties replaced for SVG and CSS respectively - more validations checkes before replacing - code organization and cleanup
1 parent 8d4fd62 commit 4b17d5c

7 files changed

Lines changed: 456 additions & 155 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
### 0.6.0
4+
5+
- moved from regx to list of valid attributes and properties replaced for SVG and CSS respectively
6+
- more validations before replacing
7+
- code organization and cleanup
8+
39
### 0.5.1
410

511
- added more components to compatibility replacement set (mathjax)

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## What?
44

5-
Use Solid components with [mdx](https://mdxjs.com/) or [xdm](http://wooorm.com/xdm/).
5+
Use [mdx](https://mdxjs.com/) or [xdm](http://wooorm.com/xdm/) with [solid-js](https://www.solidjs.com/).
66

7-
This module is ESM only, due to [mdx](https://mdxjs.com/) or [xdm](http://wooorm.com/xdm/) being ESM only.
7+
This module is ESM only, due to [mdx](https://mdxjs.com/) and [xdm](http://wooorm.com/xdm/) being ESM only.
88

99
Adding
1010

@@ -24,18 +24,8 @@ pnpm install --save-dev solid-jsx
2424

2525
This library can be used alongside version 2 of [@mdx-js](https://mdxjs.com/), or [xdm](http://wooorm.com/xdm/) by setting the jsxImportSource property to **'solid-jsx'**.
2626

27-
```js
28-
pnpm i -D @mdx-js/rollup@next
29-
```
30-
31-
or
32-
33-
```js
34-
pnpm i -D xdm
35-
```
36-
37-
You can use their official integration with various bundlers, and frameworks, below is a configuration sample
38-
for [Vite](https://vitejs.dev), which supports rollup plugins.
27+
You can use their official integration with various bundlers, and frameworks,
28+
below is an [@mdx-js](https://mdxjs.com/) configuration sample for [Vite](https://vitejs.dev), which supports rollup plugins.
3929

4030
```js
4131
import { defineConfig } from 'vite';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solid-jsx",
3-
"version": "0.5.1",
3+
"version": "0.6.0",
44
"description": "solid-js jsx compatible mdx runtime",
55
"main": "./dist/jsx-runtime.js",
66
"type": "module",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)