@@ -42,35 +42,35 @@ internal struct Parser {
4242
4343 /// An inline equation component.
4444 static let inline = EquationComponent (
45- regex: #/\$(.|\s)*? \$/# ,
45+ regex: #/\$(.*?) \$/# ,
4646 terminatingRegex: #/\$/# ,
4747 equation: . inlineEquation,
4848 supportsRecursion: false )
4949
5050 /// An TeX-style block equation component.
5151 static let tex = EquationComponent (
52- regex: #/\$\$(.|\s)*? \$\$/# ,
52+ regex: #/\$\$(.*?) \$\$/# ,
5353 terminatingRegex: #/\$\$/# ,
5454 equation: . texEquation,
5555 supportsRecursion: false )
5656
5757 /// A block equation.
5858 static let block = EquationComponent (
59- regex: #/\\\[(.|\s)*? \\\]/# ,
59+ regex: #/\\\[(.*?) \\\]/# ,
6060 terminatingRegex: #/\\\]/# ,
6161 equation: . blockEquation,
6262 supportsRecursion: false )
6363
6464 /// A named equation component.
6565 static let named = EquationComponent (
66- regex: #/\\begin{equation}(.|\s)*? \\end{equation}/# ,
66+ regex: #/\\begin{equation}(.*?) \\end{equation}/# ,
6767 terminatingRegex: #/\\end{equation}/# ,
6868 equation: . namedEquation,
6969 supportsRecursion: true )
7070
7171 /// A named no number equation component.
7272 static let namedNoNumber = EquationComponent (
73- regex: #/\\begin{equation\*}(.|\s)*? \\end{equation\*}/# ,
73+ regex: #/\\begin{equation\*}(.*?) \\end{equation\*}/# ,
7474 terminatingRegex: #/\\end{equation\*}/# ,
7575 equation: . namedNoNumberEquation,
7676 supportsRecursion: true )
0 commit comments