@retorquere/bibtex-parser 7.0.4 → 7.0.5
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.
- package/grammar.js +2 -2
- package/index.js +0 -6
- package/package.json +1 -1
package/grammar.js
CHANGED
|
@@ -671,7 +671,7 @@ function peg$parse(input, options) {
|
|
|
671
671
|
};
|
|
672
672
|
var peg$f52 = function(cmd, url) {
|
|
673
673
|
// https://github.com/retorquere/zotero-better-bibtex/issues/2617
|
|
674
|
-
url.value = url.value.replace(
|
|
674
|
+
url.value = url.value.replace(/\\([\#%])/g, '$1')
|
|
675
675
|
return {
|
|
676
676
|
kind: 'RegularCommand',
|
|
677
677
|
loc: location(),
|
|
@@ -685,7 +685,7 @@ function peg$parse(input, options) {
|
|
|
685
685
|
};
|
|
686
686
|
var peg$f53 = function(cmd, url, label) {
|
|
687
687
|
// https://github.com/retorquere/zotero-better-bibtex/issues/2617
|
|
688
|
-
url.value = url.value.replace(
|
|
688
|
+
url.value = url.value.replace(/\\([\#%])/g, '$1')
|
|
689
689
|
return {
|
|
690
690
|
kind: 'RegularCommand',
|
|
691
691
|
loc: location(),
|
package/index.js
CHANGED
|
@@ -934,12 +934,6 @@ class Parser {
|
|
|
934
934
|
case 'url':
|
|
935
935
|
node.arguments.required = node.arguments.required.map(a => this.clean(a));
|
|
936
936
|
return node;
|
|
937
|
-
/*
|
|
938
|
-
case 'url':
|
|
939
|
-
if (arg = this.argument(node, 'Text')) return this.text(arg)
|
|
940
|
-
if (arg = this.argument(node, 'Block')) return this.clean(arg as Node)
|
|
941
|
-
break
|
|
942
|
-
*/
|
|
943
937
|
case 'sl':
|
|
944
938
|
case 'em':
|
|
945
939
|
case 'it':
|