Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
markdown-3409277
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
markdown-3409277
Commits
2709041c
Commit
2709041c
authored
8 years ago
by
Fredrik Jonsson
Browse files
Options
Downloads
Patches
Plain Diff
Prefer composer installed PHP Markdown if installed.
parent
ba5cb3a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Filter/Markdown.php
+1
-1
1 addition, 1 deletion
src/Plugin/Filter/Markdown.php
with
1 addition
and
1 deletion
src/Plugin/Filter/Markdown.php
+
1
−
1
View file @
2709041c
...
...
@@ -81,7 +81,7 @@ class Markdown extends FilterBase {
$text
=
$converter
->
convertToHtml
(
$text
);
break
;
case
'php-markdown'
:
if
(
\Drupal
::
moduleHandler
()
->
moduleExists
(
'libraries'
))
{
if
(
!
class_exists
(
'Michelf\MarkdownExtra'
)
&&
\Drupal
::
moduleHandler
()
->
moduleExists
(
'libraries'
))
{
libraries_load
(
'php-markdown'
,
'markdown-extra'
);
}
$text
=
MarkdownExtra
::
defaultTransform
(
$text
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment