You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/_tools/bib/citation-reference/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ function clbk( error, reference ) {
135
135
/* e.g., =>
136
136
(Press et al. 1992)
137
137
138
-
Press, William H., Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 1992. *Numerical Recipes in C: The Art of Scientific Computing, Second Edition*. Cambridge University Press.
138
+
Press, William H., Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 1992. _Numerical Recipes in C: The Art of Scientific Computing, Second Edition_. Cambridge University Press.
@@ -24,11 +30,24 @@ var SMART_SINGLE_QUOTES = /[\u2018\u2019\u201A\u201B]/g;
24
30
* var raw = 'Bays, Carter, and S. D. Durham. 1976. “Improving a Poor Random Number Generator.” *ACM Trans. Math. Softw.* 2 (1). New York, NY, USA: ACM: 59–64. doi:[10.1145/355666.355670](http://dx.doi.org/10.1145/355666.355670).'
25
31
*
26
32
* var out = transform( raw );
27
-
* // returns 'Bays, Carter, and S. D. Durham. 1976. "Improving a Poor Random Number Generator." *ACM Trans. Math. Softw.* 2 (1). New York, NY, USA: ACM: 59–64. doi:[10.1145/355666.355670](http://dx.doi.org/10.1145/355666.355670).'
33
+
* // returns 'Bays, Carter, and S. D. Durham. 1976. "Improving a Poor Random Number Generator." _ACM Trans. Math. Softw._ 2 (1). New York, NY, USA: ACM: 59–64. doi:[10.1145/355666.355670](http://dx.doi.org/10.1145/355666.355670).'
28
34
*/
29
35
functiontransform(raw){
30
36
raw=replace(raw,SMART_SINGLE_QUOTES,'\'');
31
37
raw=replace(raw,SMART_DOUBLE_QUOTES,'"');
38
+
39
+
// Replace `*` markers indicating emphasis with a temporary place holder:
0 commit comments