@@ -42,35 +42,35 @@ internal struct Parser {
42
42
43
43
/// An inline equation component.
44
44
static let inline = EquationComponent (
45
- regex: #/\$(.|\s)*? \$/# ,
45
+ regex: #/\$(.*?) \$/# ,
46
46
terminatingRegex: #/\$/# ,
47
47
equation: . inlineEquation,
48
48
supportsRecursion: false )
49
49
50
50
/// An TeX-style block equation component.
51
51
static let tex = EquationComponent (
52
- regex: #/\$\$(.|\s)*? \$\$/# ,
52
+ regex: #/\$\$(.*?) \$\$/# ,
53
53
terminatingRegex: #/\$\$/# ,
54
54
equation: . texEquation,
55
55
supportsRecursion: false )
56
56
57
57
/// A block equation.
58
58
static let block = EquationComponent (
59
- regex: #/\\\[(.|\s)*? \\\]/# ,
59
+ regex: #/\\\[(.*?) \\\]/# ,
60
60
terminatingRegex: #/\\\]/# ,
61
61
equation: . blockEquation,
62
62
supportsRecursion: false )
63
63
64
64
/// A named equation component.
65
65
static let named = EquationComponent (
66
- regex: #/\\begin{equation}(.|\s)*? \\end{equation}/# ,
66
+ regex: #/\\begin{equation}(.*?) \\end{equation}/# ,
67
67
terminatingRegex: #/\\end{equation}/# ,
68
68
equation: . namedEquation,
69
69
supportsRecursion: true )
70
70
71
71
/// A named no number equation component.
72
72
static let namedNoNumber = EquationComponent (
73
- regex: #/\\begin{equation\*}(.|\s)*? \\end{equation\*}/# ,
73
+ regex: #/\\begin{equation\*}(.*?) \\end{equation\*}/# ,
74
74
terminatingRegex: #/\\end{equation\*}/# ,
75
75
equation: . namedNoNumberEquation,
76
76
supportsRecursion: true )
0 commit comments