Skip to content

Commit

Permalink
Bump league/commonmark from 2.5.3 to 2.6.0 (vufind-org#4156)
Browse files Browse the repository at this point in the history
* Bump league/commonmark from 2.5.3 to 2.6.0

Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.5.3 to 2.6.0.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.6/CHANGELOG.md)
- [Commits](thephpleague/commonmark@2.5.3...2.6.0)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix test and configuration.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Demian Katz <[email protected]>
(cherry picked from commit 1d8fa31)
  • Loading branch information
dependabot[bot] authored and EreMaijala committed Dec 11, 2024
1 parent 192e13b commit ddb264d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"laminas/laminas-text": "2.11.0",
"laminas/laminas-validator": "2.55.0",
"laminas/laminas-view": "2.27.0",
"league/commonmark": "2.5.3",
"league/commonmark": "2.6.0",
"league/oauth2-client": "^2.7",
"league/oauth2-server": "8.5.4",
"lm-commons/lmc-rbac-mvc": "3.4.0",
Expand Down
21 changes: 11 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions config/vufind/markdown.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; This file could be used to define configuration of markdown to HTML converter.
; More detailed configuration documentation could be found here:
; https://commonmark.thephpleague.com/2.5/configuration/
; https://commonmark.thephpleague.com/2.6/configuration/
[Markdown]
; How to handle HTML input. Options are: strip, allow, escape. Defaults to strip
;html_input = allow
Expand All @@ -18,27 +18,27 @@
;max_nesting_level = 10

; Which extension you want to activate. List of extension names separated by comma.
; Available extensions as of league/commonmark version 2.5:
; Available extensions as of league/commonmark version 2.6:
; Attributes, Autolink, DefaultAttributes, DescriptionList, DisallowedRawHtml,
; ExternalLink, Footnote, FrontMatter, HeadingPermalink, Mention, SmartPunct,
; Strikethrough, Table, TableOfContents, TaskList.
; More about extensions: https://commonmark.thephpleague.com/2.5/extensions/overview/
; More about extensions: https://commonmark.thephpleague.com/2.6/extensions/overview/
; Some of them could have a configuration, see sections below.
; Note: FrontMatter does enable to inject the title other then main heading. Just add
; something like this at the very beginning of your markdown file:
;---
;title: "Some specific title"
;---
; See more about FrontMatter extension here:
; https://commonmark.thephpleague.com/2.5/extensions/front-matter/
; https://commonmark.thephpleague.com/2.6/extensions/front-matter/
;
; You can also use own extensions, just address it using fully qualified class name
; like 'VuFindLocalModule\Markdown\ExampleExtension'. If your extension is
; configurable you need to add configuration section identified also by fully
; qualified name. For example: '[VuFindLocalModule\Markdown\ExampleExtension]', and
; with 'config_key' with value of configuration key, in which your extension expects
; its configuration. More about custom extension configuration:
; https://commonmark.thephpleague.com/2.5/customization/configuration/
; https://commonmark.thephpleague.com/2.6/customization/configuration/
extensions = Autolink,DisallowedRawHtml,Strikethrough,Table,TaskList

; CommonMarkCore extension is always enabled by default
Expand All @@ -57,13 +57,13 @@ extensions = Autolink,DisallowedRawHtml,Strikethrough,Table,TaskList
;unordered_list_markers[] = "*"
;unordered_list_markers[] = "+"

; See https://commonmark.thephpleague.com/2.5/extensions/default-attributes/
; See https://commonmark.thephpleague.com/2.6/extensions/default-attributes/
[DefaultAttributes]
; Example configuration:
;League\CommonMark\Extension\Table\Table[class] = 'table'
;League\CommonMark\Extension\CommonMark\Node\Inline\Link[target] = '_blank'

; See https://commonmark.thephpleague.com/2.5/extensions/disallowed-raw-html/
; See https://commonmark.thephpleague.com/2.6/extensions/disallowed-raw-html/
[DisallowedRawHtml]
; Default configuration, to enable any tag, just comment out the appropriate line
disallowed_tags[] = "title"
Expand All @@ -76,7 +76,7 @@ disallowed_tags[] = "noframes"
disallowed_tags[] = "script"
disallowed_tags[] = "plaintext"

; See https://commonmark.thephpleague.com/2.5/extensions/external-links/
; See https://commonmark.thephpleague.com/2.6/extensions/external-links/
[ExternalLink]
; This should be always set, if you want to use this extension. You can use regular
; expressions to match group of hosts
Expand All @@ -87,7 +87,7 @@ internal_hosts[] = www.example.com
;noopener = external
;noreferrer = external

; See https://commonmark.thephpleague.com/2.5/extensions/footnotes/
; See https://commonmark.thephpleague.com/2.6/extensions/footnotes/
[Footnote]
;backref_class = footnote-backref
;backref_symbol = '↩'
Expand All @@ -98,7 +98,7 @@ internal_hosts[] = www.example.com
;footnote_class = footnote
;footnote_id_prefix = 'fn:'

; See https://commonmark.thephpleague.com/2.5/extensions/heading-permalinks/
; See https://commonmark.thephpleague.com/2.6/extensions/heading-permalinks/
[HeadingPermalink]
; There is also 'slug_normalizer' options, which should be set to an object
; implementing League\CommonMark\Normalizer\TextNormalizerInterface
Expand All @@ -117,21 +117,21 @@ internal_hosts[] = www.example.com
;heading_class = 'heading'
;insert = 'none'

; See https://commonmark.thephpleague.com/2.5/extensions/mentions/
; See https://commonmark.thephpleague.com/2.6/extensions/mentions/
[Mention]
; This is an example of configuration, see more details in original documentation
;github_handle[prefix] = '@'
;github_handle[pattern] = '/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}(?!\w)/'
;github_handle[generator] = 'https://github.com/%s'

; See https://commonmark.thephpleague.com/2.5/extensions/smart-punctuation/
; See https://commonmark.thephpleague.com/2.6/extensions/smart-punctuation/
[SmartPunct]
;double_quote_opener = '“'
;double_quote_closer = '”'
;single_quote_opener = '‘'
;single_quote_closer = '’'

; See https://commonmark.thephpleague.com/2.5/extensions/table-of-contents/
; See https://commonmark.thephpleague.com/2.6/extensions/table-of-contents/
[TableOfContents]
;html_class = table-of-contents
;position = top
Expand All @@ -141,7 +141,7 @@ internal_hosts[] = www.example.com
;normalize = relative
;placeholder =

; See https://commonmark.thephpleague.com/2.5/extensions/tables/
; See https://commonmark.thephpleague.com/2.6/extensions/tables/
[Table]
;wrap[enabled] = true
;wrap[tag] = 'div'
Expand All @@ -153,3 +153,4 @@ internal_hosts[] = www.example.com
;alignment_attributes[left] = 'align:left'
;alignment_attributes[center] = 'align:center'
;alignment_attributes[right] = 'align:right'
;max_autocompleted_cells = 10000
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ public function testConfig(): void
'class' => 'right',
],
],
'max_autocompleted_cells' => 10000,
],
'example' => [
'example' => 'example',
Expand Down

0 comments on commit ddb264d

Please sign in to comment.