Comparing version 2.6.1 to 2.6.2
@@ -9,25 +9,25 @@ 'use strict' | ||
/* | ||
* A simple one line comment like in a git status command | ||
* For instance: | ||
* $ git status | ||
* # On branch infinite-scroll | ||
* # Your branch and 'origin/sharedBranches/frontendTeam/infinite-scroll' have diverged, | ||
* # and have 1 and 2 different commits each, respectively. | ||
* nothing to commit (working directory clean) | ||
*/ | ||
* A simple one line comment like in a git status command | ||
* For instance: | ||
* $ git status | ||
* # On branch infinite-scroll | ||
* # Your branch and 'origin/sharedBranches/frontendTeam/infinite-scroll' have diverged, | ||
* # and have 1 and 2 different commits each, respectively. | ||
* nothing to commit (working directory clean) | ||
*/ | ||
comment: /^#.*/m, | ||
/* | ||
* Regexp to match the changed lines in a git diff output. Check the example below. | ||
*/ | ||
* Regexp to match the changed lines in a git diff output. Check the example below. | ||
*/ | ||
deleted: /^[-–].*/m, | ||
inserted: /^\+.*/m, | ||
/* | ||
* a string (double and simple quote) | ||
*/ | ||
* a string (double and simple quote) | ||
*/ | ||
string: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/m, | ||
/* | ||
* a git command. It starts with a random prompt finishing by a $, then "git" then some other parameters | ||
* For instance: | ||
* $ git add file.txt | ||
*/ | ||
* a git command. It starts with a random prompt finishing by a $, then "git" then some other parameters | ||
* For instance: | ||
* $ git add file.txt | ||
*/ | ||
command: { | ||
@@ -37,7 +37,7 @@ pattern: /^.*\$ git .*$/m, | ||
/* | ||
* A git command can contain a parameter starting by a single or a double dash followed by a string | ||
* For instance: | ||
* $ git diff --cached | ||
* $ git log -p | ||
*/ | ||
* A git command can contain a parameter starting by a single or a double dash followed by a string | ||
* For instance: | ||
* $ git diff --cached | ||
* $ git log -p | ||
*/ | ||
parameter: /\s--?\w+/m | ||
@@ -47,27 +47,27 @@ } | ||
/* | ||
* Coordinates displayed in a git diff command | ||
* For instance: | ||
* $ git diff | ||
* diff --git file.txt file.txt | ||
* index 6214953..1d54a52 100644 | ||
* --- file.txt | ||
* +++ file.txt | ||
* @@ -1 +1,2 @@ | ||
* -Here's my tetx file | ||
* +Here's my text file | ||
* +And this is the second line | ||
*/ | ||
* Coordinates displayed in a git diff command | ||
* For instance: | ||
* $ git diff | ||
* diff --git file.txt file.txt | ||
* index 6214953..1d54a52 100644 | ||
* --- file.txt | ||
* +++ file.txt | ||
* @@ -1 +1,2 @@ | ||
* -Here's my tetx file | ||
* +Here's my text file | ||
* +And this is the second line | ||
*/ | ||
coord: /^@@.*@@$/m, | ||
/* | ||
* Match a "commit [SHA1]" line in a git log output. | ||
* For instance: | ||
* $ git log | ||
* commit a11a14ef7e26f2ca62d4b35eac455ce636d0dc09 | ||
* Author: lgiraudel | ||
* Date: Mon Feb 17 11:18:34 2014 +0100 | ||
* | ||
* Add of a new line | ||
*/ | ||
* Match a "commit [SHA1]" line in a git log output. | ||
* For instance: | ||
* $ git log | ||
* commit a11a14ef7e26f2ca62d4b35eac455ce636d0dc09 | ||
* Author: lgiraudel | ||
* Date: Mon Feb 17 11:18:34 2014 +0100 | ||
* | ||
* Add of a new line | ||
*/ | ||
commit_sha1: /^commit \w{40}$/m | ||
} | ||
} |
@@ -23,5 +23,5 @@ 'use strict' | ||
/* | ||
* equations can be between $ $ or \( \) or \[ \] | ||
* (all are multiline) | ||
*/ | ||
* equations can be between $ $ or \( \) or \[ \] | ||
* (all are multiline) | ||
*/ | ||
equation: [ | ||
@@ -41,5 +41,5 @@ { | ||
/* | ||
* arguments which are keywords or references are highlighted | ||
* as keywords | ||
*/ | ||
* arguments which are keywords or references are highlighted | ||
* as keywords | ||
*/ | ||
keyword: { | ||
@@ -54,5 +54,5 @@ pattern: /(\\(?:begin|end|ref|cite|label|usepackage|documentclass)(?:\[[^\]]+\])?\{)[^}]+(?=\})/, | ||
/* | ||
* section or chapter headlines are highlighted as bold so that | ||
* they stand out more | ||
*/ | ||
* section or chapter headlines are highlighted as bold so that | ||
* they stand out more | ||
*/ | ||
headline: { | ||
@@ -59,0 +59,0 @@ pattern: /(\\(?:part|chapter|section|subsection|frametitle|subsubsection|paragraph|subparagraph|subsubparagraph|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\}(?:\[[^\]]+\])?)/, |
@@ -20,3 +20,3 @@ 'use strict' | ||
/* Look-behind and look-ahead prevents wrong behavior of the greedy pattern | ||
* forcing it to match """-quoted string when it would otherwise match "-quoted first. */ | ||
* forcing it to match """-quoted string when it would otherwise match "-quoted first. */ | ||
pattern: /(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/, | ||
@@ -23,0 +23,0 @@ lookbehind: true, |
{ | ||
"name": "refractor", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Lightweight, robust, elegant virtual syntax highlighting using Prism", | ||
@@ -31,3 +31,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"hastscript": "^4.0.0", | ||
"hastscript": "^5.0.0", | ||
"parse-entities": "^1.1.2", | ||
@@ -51,3 +51,3 @@ "prismjs": "~1.15.0" | ||
"prettier": "^1.12.1", | ||
"rehype": "^6.0.0", | ||
"rehype": "^7.0.0", | ||
"remark-cli": "^6.0.0", | ||
@@ -54,0 +54,0 @@ "remark-preset-wooorm": "^4.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
427584
+ Addedhastscript@5.1.2(transitive)
+ Addedproperty-information@5.6.0(transitive)
- Removedhastscript@4.1.0(transitive)
- Removedproperty-information@4.2.0(transitive)
Updatedhastscript@^5.0.0