Skip to content

Commit 07d8f46

Browse files
committed
2 parents 5a9fe97 + 26f77be commit 07d8f46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ There are additional configs:
7272

7373
![image](https://github.com/user-attachments/assets/550ec70b-60fe-4074-b0aa-acb475aed9ab)
7474

75+
## Specifying custom Pandoc filters
76+
You can specify custom [Pandoc filters](https://pandoc.org/filters.html) using ```$wgPandocUltimateConverter_FiltersToUse[] = 'filter_name.lua';``` (multiple filters can be specified). Filter must be located in a ```filters``` subfolder of an extension. We have a few pre-built filters you can use:
77+
1. ```increase_heading_level.lua``` -- increase heading levels by 1. Helps when document has heading starting from level 1 (MediaWiki users typically prefer startin from level 2 headings)
78+
2. ```colorize_mark_class.lua``` -- highlight with yellow all the 'mark' classes. These classes usually appear when you convert a docx with background color. See [Issue #14](https://github.com/Griboedow/PandocUltimateConverter/issues/14)
79+
7580
# Debug
7681
In case you face any issues with the extension, please add these lines to the LocalSettings.php:
7782

0 commit comments

Comments
 (0)