We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e366879 commit d95283fCopy full SHA for d95283f
2 files changed
examples/basic.php
@@ -38,7 +38,11 @@
38
more
39
}}}
40
41
-Postipsum.
+Postipsum with a multiline {inline-shortcode
42
+|foo
43
+|bar=''
44
+|baz=3
45
+} that should work.
46
")->getContent();
47
48
/* Output:
tests/ShortcodeExtensionTest.php
@@ -54,6 +54,15 @@ public function provideBasics(): array
54
],
55
'output' => "<p>Foo e fc baz</p>\n",
56
57
+ 'inline-with-linebreaks' => [
58
+ 'markdown' => "Foo {bar\n|name=Douglas\n|id=Q42\n} baz",
59
+ 'shortcodes' => [
60
+ 'bar' => static function (Shortcode $sc) {
61
+ return '--' . $sc->getAttr('name') . '--';
62
+ },
63
+ ],
64
+ 'output' => "<p>Foo --Douglas-- baz</p>\n",
65
66
'inline-escape-chars' => [
67
'markdown' => 'outer {one| inner1 {two\|inner2\}}',
68
'shortcodes' => [
0 commit comments