Comparing version 1.1.0 to 1.1.1
@@ -26,2 +26,3 @@ const { SyncReplaceable, makeMarkers, makeCutRule } = require('restream'); | ||
const isSelfClosing = selfClosing.startsWith('/') | ||
|| p.endsWith('/') // non-greedy regex is greedy for (/>|>) | ||
if (!contentStart) { | ||
@@ -28,0 +29,0 @@ contentStart = m.length |
@@ -177,4 +177,4 @@ let mismatch = require('mismatch'); if (mismatch && mismatch.__esModule) mismatch = mismatch.default; | ||
const ld = length - chunk.length | ||
if (ld < 0) | ||
console.warn('The chunks length is more that replaced input') | ||
// if (ld < 0) | ||
// console.warn('The chunks length is more that replaced input') | ||
// throw new Error('The length of the chunk cannot be more than of the replaced value.') | ||
@@ -181,0 +181,0 @@ let p = chunk |
@@ -0,1 +1,8 @@ | ||
## 12 December 2018 | ||
### 1.1.1 | ||
- [fix] Process self-closing with a space before `/`. | ||
- [fix] Disable length warning. | ||
## 11 December 2018 | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@a-la/jsx", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "The JSX Transform For ÀLaMode And Other Packages.", | ||
@@ -5,0 +5,0 @@ "main": "build", |
@@ -57,2 +57,4 @@ # @a-la/jsx | ||
```jsx | ||
import RichTextArea from 'richtext' | ||
const Title = <title>Example</title> | ||
@@ -71,2 +73,3 @@ | ||
<Title/> | ||
<RichTextArea /> | ||
<p {...props} align={align}> | ||
@@ -81,2 +84,4 @@ Hello World! | ||
```js | ||
import RichTextArea from 'richtext' | ||
const Title = h('title',{},`Example`) | ||
@@ -95,2 +100,3 @@ | ||
`,h(Title),` | ||
`,h(RichTextArea),` | ||
`,h('p',{...props,align:align},` | ||
@@ -97,0 +103,0 @@ Hello World! |
22269
387
146