KD2 Framework  Check-in [579e377687]

Overview
Comment:Skrivlite: Fix named footnotes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 7.3
Files: files | file ages | folders
SHA1: 579e377687358001bebe45cd83bb4d70fd72c543
User & Date: bohwaz on 2021-03-24 01:56:07
Other Links: branch diff | manifest | tags
Context
2021-03-24
17:13
AbstractEntity: implement static caching, so that not every instance of entity needs to do reflection check-in: 659bcb8017 user: bohwaz tags: 7.3
01:56
Skrivlite: Fix named footnotes check-in: 579e377687 user: bohwaz tags: 7.3
01:53
Fix issue with code blocks check-in: ee85e05276 user: bohwaz tags: 7.3
Changes

Modified src/lib/KD2/SkrivLite.php from [acd3a191c2] to [e177db920c].

317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
		if ($tag == '<<' && preg_match('/(^[a-z_]+)(.*?)>>/i', $text, $match))
		{
			$out = $this->_callExtension($match);
		}
		// Footnotes: ((identifier|Foot note)) or ((numbered foot note))
		elseif ($tag == '((' && preg_match('/^(.*?)\)\)/', $text, $match))
		{
			if (preg_match('/^([\w\d ]+)\|/', $match[1], $submatch))
			{
				$label = trim($submatch[1]);
				$content = trim(substr($match[1], strlen($submatch[1])+1));
			}
			else
			{
				$content = trim($match[1]);







|







317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
		if ($tag == '<<' && preg_match('/(^[a-z_]+)(.*?)>>/i', $text, $match))
		{
			$out = $this->_callExtension($match);
		}
		// Footnotes: ((identifier|Foot note)) or ((numbered foot note))
		elseif ($tag == '((' && preg_match('/^(.*?)\)\)/', $text, $match))
		{
			if (preg_match('/^([\w\d ]+)\|/i', $match[1], $submatch))
			{
				$label = trim($submatch[1]);
				$content = trim(substr($match[1], strlen($submatch[1])+1));
			}
			else
			{
				$content = trim($match[1]);