remark-stringify
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -14,2 +14,3 @@ 'use strict' | ||
incrementListMarker: true, | ||
tightDefinitions: false, | ||
fences: false, | ||
@@ -16,0 +17,0 @@ fence: '`', |
@@ -19,2 +19,3 @@ 'use strict' | ||
var gap = options.commonmark ? comment : triple | ||
var definitionGap = options.tightDefinitions ? lineFeed : blank | ||
var values = [] | ||
@@ -46,2 +47,7 @@ var children = node.children | ||
values.push(gap) | ||
} else if ( | ||
previous.type === 'definition' && | ||
child.type === 'definition' | ||
) { | ||
values.push(definitionGap) | ||
} else { | ||
@@ -48,0 +54,0 @@ values.push(blank) |
{ | ||
"name": "remark-stringify", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "remark plugin to compile Markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -27,5 +27,5 @@ # remark-stringify | ||
<td width="33.33%" align="center" colspan="2"> | ||
<a href="https://zeit.co">ZEIT</a><br>🥇<br><br> | ||
<a href="https://vercel.com">Vercel</a><br>🥇<br><br> | ||
<!--OC has a sharper image--> | ||
<a href="https://zeit.co"><img src="https://images.opencollective.com/zeit/d8a5bee/logo/512.png"></a> | ||
<a href="https://vercel.com"><img src="https://images.opencollective.com/vercel/d8a5bee/logo/512.png"></a> | ||
</td> | ||
@@ -211,2 +211,9 @@ <td width="33.33%" align="center" colspan="2"> | ||
###### `options.tightDefinitions` | ||
Separate definitions with a single line feed (`boolean`, default: `false`). | ||
When `false`, definitions will have blank lines between them, similar to other | ||
blocks. | ||
###### `options.rule` | ||
@@ -213,0 +220,0 @@ |
@@ -35,2 +35,3 @@ // TypeScript Version: 3.0 | ||
incrementListMarker: boolean | ||
tightDefinitions: boolean | ||
rule: '-' | '_' | '*' | ||
@@ -37,0 +38,0 @@ ruleRepetition: number |
1445
390
53262
44