assertchris/better-markdown-editor

比Filament自带的Markdown编辑器更好的编辑器

1.0.3 2024-07-24 14:57 UTC

This package is auto-updated.

Last update: 2024-08-24 15:08:12 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

比Filament自带的Markdown编辑器更好的编辑器。

安装

您可以通过composer安装此包

composer require assertchris/better-markdown-editor

您可以使用以下命令发布配置文件

php artisan vendor:publish --tag="better-markdown-editor-config"

可选,您可以使用以下命令发布视图

php artisan vendor:publish --tag="better-markdown-editor-views"

这是已发布的配置文件内容

return [
];

用法

use AC\BetterMarkdownEditor\BetterMarkdownEditor;

BetterMarkdownEditor::make('markdown')
    // ...all the methods from the current MarkdownEditor
    // with the addition of some new methods
    ->hasLanguageAssistance(),

动机

为什么要构建这个?

我想构建一个写作平台。我喜欢Filament,但没有一个字段具有我使用其他应用程序的功能。最初,我只是想使Filament的MarkdownEditor能够指出不必要的复杂句子和糟糕的措辞。

为什么不将这些建议的贡献给Filament?

我尝试了,但他们合理地犹豫是否承担维护负担。

它为什么更好?

首先,它做了Hemingway做的事;但做得更好。

以下是我在不久的将来计划添加的功能(在拖延写作项目时)

  • 全屏模式
  • 基于LLM的错误纠正(附带大量警告和担忧)
  • 升级到CodeMirror 6

测试

composer test

许可证

MIT许可证(MIT)。有关更多信息,请参阅许可证文件