Skip to content

Commit 8073131

Browse files
committed
feat: Add markdown type in Mimes
1 parent 601cfa9 commit 8073131

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

app/Config/Mimes.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ class Mimes
481481
'model/stl',
482482
'application/octet-stream',
483483
],
484+
'md' => [
485+
'text/markdown',
486+
'text/plain',
487+
],
484488
];
485489

486490
/**

user_guide_src/source/changelogs/v4.7.1.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ Events
3434
declare event names that should be cleaned up between requests when listeners are
3535
registered inside event callbacks. See :ref:`worker-mode-reset-event-listeners`.
3636

37+
Config
38+
======
39+
40+
**Mimes:** Added a type for Markdown.
41+
3742
Others
3843
======
3944

user_guide_src/source/installation/upgrade_471.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ and it is recommended that you merge the updated versions with your application:
5454
Config
5555
------
5656

57+
- app/Config/Mimes.php
58+
- ``Config\Mimes::$mimes`` added a new key ``md`` for Markdown.
5759
- app/Config/WorkerMode.php
5860
- ``Config\WorkerMode::$resetEventListeners`` has been added, with a default
5961
value set to ``[]``. See :ref:`worker-mode-reset-event-listeners` for details.
@@ -64,4 +66,5 @@ All Changes
6466
This is a list of all files in the **project space** that received changes;
6567
many will be simple comments or formatting that have no effect on the runtime:
6668

69+
- app/Config/Mimes.php
6770
- app/Config/WorkerMode.php

0 commit comments

Comments
 (0)