Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC filter on document body field #287

Merged
merged 3 commits into from
Mar 10, 2022
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
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"drupal/snowball_stemmer": "^2.0",
"drupal/theme_switcher": "dev-8.x-1.x",
"drupal/toc_api": "^1.1",
"drupal/toc_filter": "^2.0",
"drupal/token": "^1.9",
"drupal/token_filter": "^1.2",
"drupal/twig_tweak": "^3.0",
Expand Down Expand Up @@ -121,7 +122,15 @@
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/console-extend-plugin": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true
}
},
"extra": {
"drupal-scaffold": {
Expand Down
59 changes: 57 additions & 2 deletions composer.lock

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

1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module:
text: 0
theme_switcher: 0
toc_api: 0
toc_filter: 0
token: 0
token_filter: 0
toolbar: 0
Expand Down
10 changes: 10 additions & 0 deletions config/sync/filter.format.os2loop_documents_body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- convert_media_tags_to_markup
- editor
- media
- toc_filter
- token_filter
name: 'Document body (legacy)'
format: os2loop_documents_body
Expand Down Expand Up @@ -91,3 +92,12 @@ filters:
weight: -42
settings:
replace_empty: '0'
toc_filter:
id: toc_filter
provider: toc_filter
status: true
weight: 0
settings:
type: default
auto: ''
block: '0'