File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function getFormSchema(): array
5050 ->inlineLabel ()
5151 ->placeholder ('e.g. title, key, etc. ' )
5252 ->helperText (str ('The label for each item in the repeater. Using **`Name`** in the **Fields** ' )->markdown ()->toHtmlString ()),
53- ]),
53+ ]),
5454 Forms \Components \Tabs \Tab::make ('Fields ' )
5555 ->schema ([
5656 Forms \Components \TextInput::make ('defaultItems ' )
@@ -98,7 +98,7 @@ public function applyConfig(Forms\Components\Component $component): void
9898 $ component ->cloneable ($ this ->cloneable );
9999
100100 $ component ->collapsed ($ this ->defaultCollapsed ?? false );
101-
101+
102102 $ component ->itemLabel (function ($ state ) {
103103 if (is_array ($ state ) && filled ($ this ->itemLabel )) {
104104 return $ state [$ this ->itemLabel ] ?? null ;
Original file line number Diff line number Diff line change 1010abstract class BaseConverter
1111{
1212 use Macroable;
13-
13+
1414 protected FieldTypeConfig $ fieldTypeConfig ;
1515
1616 /**
@@ -44,7 +44,7 @@ protected function isFieldTypeTranslatable(): bool
4444 {
4545 return $ this ->fieldTypeConfig ->isTranslatable ();
4646 }
47-
47+
4848 public static function configureUsing (Closure $ modifyUsing )
4949 {
5050 static ::$ configurations ??= [];
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ class MarkdownConverter extends BaseConverter
88{
99 /**
1010 * @var array<string, mixed>
11+ *
1112 * @link https://commonmark.thephpleague.com/2.4/configuration/
1213 */
1314 protected array $ mdConfigs = [];
1415
1516 /**
1617 * @var array<string, mixed>
18+ *
1719 * @link https://commonmark.thephpleague.com/2.4/extensions/overview/
1820 */
1921 protected array $ mdExtensions = [];
@@ -71,9 +73,10 @@ private function convertMarkdown($value)
7173 $ value = str ($ value )->markdown ($ this ->mdConfigs , $ this ->mdExtensions )->toHtmlString ();
7274
7375 return $ value ;
74-
76+
7577 } catch (\Throwable $ th ) {
76- error_log ("Markdown conversion failed: " . $ th ->getMessage ());
78+ error_log ('Markdown conversion failed: ' . $ th ->getMessage ());
79+
7780 return $ value ;
7881 }
7982 }
You can’t perform that action at this time.
0 commit comments