Overview
Comment:Fix Markdown footnotes bug in some rare cases
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 06d4888d3d0a52059f01a85a8ca09e1ee312af6bb7870ce0006fd894c6b731eb
User & Date: bohwaz on 2021-09-14 22:26:44
Other Links: manifest | tags
Context
2021-09-14
22:36
Fix [4193b38003b8eda662f5c03067f148320986a8bb] Put back the select option to start when nothing has been selected check-in: 1346abf83f user: bohwaz tags: trunk, stable
22:26
Fix Markdown footnotes bug in some rare cases check-in: 06d4888d3d user: bohwaz tags: trunk, stable
2021-08-15
14:20
Fix match of emails using LIKE check-in: a82834776f user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Web/Render/Parsedown.php from [af58530681] to [3feb34d63b].

148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
			$block['footnotes'][$matches[1]] = $matches[2];
			return $block;
		}

		end($block['footnotes']);
		$last = key($block['footnotes']);

		if (isset($block['interrupted']))
		{
			if ($line['indent'] >= 4)
			{
				$block['footnotes'][$last] .= "\n\n" . $line['text'];

				return $block;
			}
		}
		else
		{
			$block['footnotes'][$last] .= "\n" . $line['text'];

			return $block;
		}







|

<
<
|

|
<







148
149
150
151
152
153
154
155
156


157
158
159

160
161
162
163
164
165
166
			$block['footnotes'][$matches[1]] = $matches[2];
			return $block;
		}

		end($block['footnotes']);
		$last = key($block['footnotes']);

		if (isset($block['interrupted']) && $line['indent'] >= 4)
		{


			$block['footnotes'][$last] .= "\n\n" . $line['text'];

			return $block;

		}
		else
		{
			$block['footnotes'][$last] .= "\n" . $line['text'];

			return $block;
		}