do11y 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ export const highlightCode = (code, lang) => {
14
14
  lang,
15
15
  themes: do11yOptions.highlighter.themesInput,
16
16
  defaultColor: do11yOptions.highlighter.defaultTheme,
17
+ includeExplanation: true,
17
18
  transformers: [
18
19
  transformerNotationHighlight(),
19
20
  transformerNotationDiff(),
@@ -40,7 +41,6 @@ export const highlightCode = (code, lang) => {
40
41
  const result = [];
41
42
  let previousLineWasRemoved = false;
42
43
  for (const line of tokens) {
43
- previousLineWasRemoved = false;
44
44
  const filteredLine = [];
45
45
  let hasComment = false;
46
46
  for (const token of line) {
@@ -71,6 +71,9 @@ export const highlightCode = (code, lang) => {
71
71
  continue;
72
72
  }
73
73
  }
74
+ else {
75
+ previousLineWasRemoved = false;
76
+ }
74
77
  result.push(filteredLine);
75
78
  }
76
79
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "do11y",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "A bare-bones tool to document Vue components.",
5
5
  "keywords": [
6
6
  "docs-generator",