Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
*/

'extensions' => [
AutolinkExtension::class,
AutolinkExtension::class,
ExternalLinkExtension::class,
HeadingPermalinkExtension::class,
Expand Down
2 changes: 1 addition & 1 deletion icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">undefined</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.4 1.9c-4.3-.1-7.9 3.4-7.9 8 0 .5-.4.9-.9.8s-.9-.4-.8-.9C.9 4.4 5.1.1 10.5.2c2.7 0 5.2 1.1 7.1 3.1V2.1c0-.4.4-.9.9-.9.4 0 .9.4.9.9v3.6c0 .4-.3.8-.9.8H15c-.4 0-.9-.4-.9-.9 0-.4.4-.9.9-.9h1.6C15 3 12.7 1.9 10.4 1.9zm8.5 6.8c.5 0 .9.4.8.9-.1 5.3-4.4 9.6-9.7 9.5-2.8 0-5.4-1.2-7.3-3.3v1.3c.1.5-.3 1-.8 1-.4 0-.9-.4-.9-.9v-3.6c0-.4.3-.8.8-.9h3.5c.4 0 .9.4.9.9s-.4.9-.9.9H3.8l.1.1c1.6 1.9 3.8 2.9 6.2 2.9 4.3.1 7.9-3.4 7.9-7.9 0-.5.4-.9.9-.9z"/></svg><span style="margin-top: 10px; word-break: break-word; color: #212225; ">update</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 29.9 22.1" xml:space="preserve"><path d="M17 21.1h6.1c3.4 0 5.7-2.9 5.7-6.2.1-3.3-2.2-6.3-5.5-7-.2-4-3.5-7.1-7.5-6.9h-.1c-4.3 0-6.1 2.2-6.9 4.7-3.4-.8-5.7 1.8-4.8 4.8-1.6.6-3 2.7-3 5.3-.1 2.9 2.3 5.3 5.2 5.4h6.9V15h-2.4c-.5 0-.9-.4-.3-1s3.7-4.1 4.1-4.5c.5-.4.8-.6 1.4 0 .3.3 3.5 3.6 4 4.2s.5 1.2-.4 1.2H17v6.2z" fill="none" stroke="currentColor" stroke-width="2"/></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">upload-cloud</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 26"><path d="M10.4.4L3.7 6.3c-.3.3-.3.8 0 1.2l1 1.2c.3.3.8.3 1.2 0l3.3-2.8v12c0 .5.3.8.8.8h1.7c.5 0 .8-.3.8-.8v-12l3.3 2.8c.3.3.8.3 1.2 0l1.2-1.3c.3-.3.3-.8 0-1.2L11.5.4c-.4-.1-.8-.1-1.1 0zM2.9 23.5c.3.3.7.5 1.1.5h13.8c.5 0 .8-.1 1.2-.5.3-.3.5-.7.5-1.2s-.1-.8-.5-1.2c-.3-.3-.7-.5-1.2-.5H4c-.5 0-.8.1-1.2.5-.3.3-.5.7-.5 1.2.1.5.2.9.6 1.2z"/></svg><span style="margin-top: 10px; word-break: break-word; color: #212225; ">upload</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24.5 24.5"><style>.user-developer-st0{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}</style><g transform="translate(-753.75 -2565.75)"><g><g><path class="user-developer-st0" d="M754.8 2583.2c0-3.7 3-6.8 6.8-6.7.9 0 1.8.2 2.6.5"/><path class="user-developer-st0" d="M761.5 2575c2.3 0 4.1-1.8 4.1-4.1s-1.8-4.1-4.1-4.1-4.1 1.8-4.1 4.1 1.8 4.1 4.1 4.1z"/><path class="user-developer-st0" d="M771.2 2589.2c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z"/><path class="user-developer-st0" d="M769.8 2581.8l-1.5 1.5 1.5 1.5"/><path class="user-developer-st0" d="M772.8 2581.8l1.5 1.5-1.5 1.5"/></g></g></g></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">user-developer</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 24 24" xml:space="preserve"><style>.user-refresh-st0{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}</style><g transform="translate(.001)"><path class="user-refresh-st0" d="M.8 17.2c0-3.7 3-6.8 6.8-6.7.9 0 1.8.2 2.6.5"/><circle class="user-refresh-st0" cx="7.5" cy="4.9" r="4.1"/><path class="user-refresh-st0" d="M15 18.8h-3.8v3.8"/><path class="user-refresh-st0" d="M22.7 19.5c-1 2.9-4.2 4.5-7.1 3.5-1.9-.6-3.3-2.2-3.7-4.2"/><path class="user-refresh-st0" d="M19.5 15.8h3.8V12"/><path class="user-refresh-st0" d="M11.8 15c1-2.9 4.2-4.5 7.1-3.5 1.9.6 3.3 2.2 3.7 4.2"/></g></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">user-refresh</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M10.01 20c1.407 0 2.81-.296 4.127-.883a9.766 9.766 0 005.232-5.576C21.29 8.323 18.675 2.538 13.54.645 9.827-.715 5.824.11 3.049 2.793v-.87a1.129 1.129 0 10-2.26 0V5.52a1.13 1.13 0 00.282.743 1.123 1.123 0 00.775.382c.027.001.044 0 .08.002h3.587a1.129 1.129 0 100-2.259H4.65c2.147-2.05 5.237-2.674 8.11-1.622 3.965 1.462 5.98 5.946 4.49 9.995a7.521 7.521 0 01-4.033 4.294 7.86 7.86 0 01-5.96.191 7.656 7.656 0 01-4.31-3.998 1.129 1.129 0 10-2.056.938 9.94 9.94 0 005.588 5.18A10.18 10.18 0 0010.01 20z"/></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">user-refresh</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 24.5 18.5" xml:space="preserve"><style>.user-team-st0{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}</style><g transform="translate(.25 -2.75)"><circle class="user-team-st0" cx="7.5" cy="7.9" r="4.1"/><path class="user-team-st0" d="M.8 20.2c0-3.7 3-6.8 6.8-6.8s6.8 3 6.8 6.8"/><circle class="user-team-st0" cx="17.7" cy="10.1" r="3.4"/><path class="user-team-st0" d="M15.8 15.1c2.9-1.1 6 .4 7.1 3.3.2.6.3 1.3.3 1.9"/></g></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">user-team</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28"><path d="M10.1 3.8c-.1-.1 0-.2.1-.2 4 0 6.9 1.2 8.8 3.3 2 2.1 3 5.2 3 9.3 0 .3.2.5.5.5s.5-.2.5-.5c0-4.2-1.1-7.6-3.3-9.9-2.2-2.3-5.4-3.6-9.5-3.6-.1 0-.2-.2-.1-.2l1-1s.1-.1.1-.2 0-.1-.1-.2l-.3-.3-.1-.1h-.2s-.1 0-.1.1L8.3 2.9l-.1.1c-.1.1 0 .1 0 .1 0 .1 0 .1.1.2l2.2 2.2c.1 0 .1.1.1.1.1 0 .1 0 .2-.1l.3-.3s0-.1.1-.1v-.2s0-.1-.1-.1l-1-1zM1 11.2c.3 0 .5.2.5.5 0 4 1 7.1 3 9.3 1.9 2.1 4.8 3.3 8.8 3.3.1 0 .2-.1.1-.2l-1-1s0-.1-.1-.1v-.2s0-.1.1-.1l.3-.3s.1-.1.2-.1c0 0 .1 0 .1.1l2.2 2.2s.1.1.1.2v.1s0 .1-.1.1L13 27.2l-.1.1h-.2s-.1 0-.1-.1l-.3-.3s-.1-.1-.1-.2 0-.1.1-.2l1-1c.1-.1 0-.2-.1-.2-4.2 0-7.4-1.3-9.5-3.6C1.5 19.3.4 15.9.4 11.8c.1-.4.3-.6.6-.6zm16.2 8.5c-.2 0-.4-.1-.5-.3l-.3-.6c-.8-2.1-1.8-2.9-3.3-2.9h-1.8c-1.5 0-2.4.9-3.3 2.9l-.3.6c-.1.3-.4.4-.6.3-.3-.1-.4-.4-.3-.6l.3-.6c.6-1.5 1.7-3.6 4.2-3.6h1.8c2.5 0 3.5 2.1 4.2 3.6l.3.6c.1.3 0 .5-.3.6h-.1zM10.7 11c0-.9.7-1.6 1.6-1.6.9 0 1.6.7 1.6 1.6s-.7 1.6-1.6 1.6c-.9.1-1.6-.7-1.6-1.6zm1.6-2.7c-1.5 0-2.7 1.2-2.7 2.7 0 1.5 1.2 2.7 2.7 2.7 1.5 0 2.7-1.2 2.7-2.7 0-1.5-1.2-2.7-2.7-2.7z"/></svg><span style="margin-top: 10px; word-break: break-word; color: #212225; ">user-update</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 16.1 18.8" xml:space="preserve"><style>.user-verified-st0{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}</style><g transform="translate(-657.75 -2564.75)"><g transform="translate(658.75 2565.75)"><path class="user-verified-st0" d="M0 16.4c0-3.4 2.8-6.2 6.2-6.2.8 0 1.6.2 2.4.5"/><path class="user-verified-st0" d="M6.7 7.1c1.9 0 3.5-1.5 3.5-3.5S8.7 0 6.7 0C4.8 0 3.2 1.5 3.2 3.5 3.1 5.4 4.7 7 6.6 7.1h.1z"/><path class="user-verified-st0" d="M13.7 12.9L11 16.5c-.2.3-.6.4-.9.2l-.1-.1c-.1 0-.1 0-.1-.1l-1.4-1.4"/></g></g></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">user-verified</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 21 22"><defs><path d="M.4.4h20.5V22H.4z"/></defs><clipPath><use xlink:href="#user_svg__a" overflow="visible"/></clipPath><g clip-path="url(#user_svg__b)"><path d="M20 22c-.4 0-.7-.2-.9-.6l-.5-1.1c-1.5-3.9-3.5-5.6-6.2-5.6H8.8c-2.8 0-4.6 1.6-6.2 5.6l-.5 1.1c-.2.5-.7.7-1.2.5-.5-.2-.7-.7-.5-1.2l.5-1.1c1.1-2.9 3.3-6.8 8-6.8h3.5c4.7 0 6.8 3.9 8 6.8l.5 1.1c.2.5 0 1-.5 1.2-.2.1-.3.1-.4.1zM10.7 2.4C9 2.4 7.6 3.8 7.6 5.5c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3.1-1.4 3.1-3.1-.1-1.7-1.4-3.1-3.1-3.1zM5.6 5.5C5.6 2.7 7.9.4 10.7.4s5.1 2.3 5.1 5.1-2.3 5.1-5.1 5.1c-2.9.1-5.1-2.2-5.1-5.1z"/></g></svg>
<span style="margin-top: 10px; word-break: break-word; color: #212225; ">user</span></div><div style="display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; fill: #3e9dff; color: #3e9dff"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 18 18"><defs><path d="M0 0h18v18H0z"/></defs><clipPath><use xlink:href="#verified_svg__a" overflow="visible"/></clipPath><g clip-path="url(#verified_svg__b)"><path d="M14 18H4c-2.2 0-4-1.8-4-4V4c0-2.2 1.8-4 4-4h10c1.6 0 3.1 1 3.7 2.5l-8.9 7.8L6 7.7 4 9.5 8.8 14 18 5.9V14c0 2.2-1.8 4-4 4z" fill="currentColor"/></g></svg>
Expand Down
8 changes: 3 additions & 5 deletions src/Providers/CommonMarkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ private function registerCommonMarkEnvironment(): void
$environment->addRenderer($interface, resolve($implementation), 0);
}

$environment->addExtension(new ExternalLinkExtension());
$environment->addExtension(new HeadingPermalinkExtension());
foreach (Config::get('markdown.extensions', []) as $extension) {
$environment->addExtension(resolve($extension));
}

$environment->mergeConfig([
'external_link' => [
Expand All @@ -209,16 +210,13 @@ private function registerCommonMarkEnvironment(): void
'noopener' => 'external',
'noreferrer' => 'external',
],


'heading_permalink' => [
'html_class' => 'heading-permalink',
'id_prefix' => 'user-content',
'insert' => 'before',
'title' => 'Permalink',
'symbol' => '#',
],

'slug_normalizer' => [
'instance' => new SlugNormalizer(),
],
Expand Down