File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/node_modules/@stdlib/_tools/bib/citation-reference/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ var SMART_SINGLE_QUOTES = /[\u2018\u2019\u201A\u201B]/g;
3030var ITALIC_START = / \* / g;
3131var ITALIC_END = / \* ( [ . ] ) / g;
3232var BOLD_START = / _ _ / g;
33- var BOLD_END = / _ _ / g;
33+ var BOLD_END = / _ _ ( [ . ] ) / g;
3434var TMP_START = / { { REPLACE_ I T A L I C _ S T A R T } } / g;
3535var TMP_END = / { { REPLACE_ I T A L I C _ E N D } } ( [ . ] ) / g;
3636
@@ -60,7 +60,7 @@ function transform( raw ) {
6060
6161 // Replace `__` markers indicating strong with `**`:
6262 raw = replace ( raw , BOLD_START , ' **' ) ;
63- raw = replace ( raw , BOLD_END , '** ' ) ;
63+ raw = replace ( raw , BOLD_END , '**$1 ' ) ;
6464
6565 // Replace temporary place holders with `_` to indicate emphasis:
6666 raw = replace ( raw , TMP_START , ' _' ) ;
You can’t perform that action at this time.
0 commit comments