Skip to content

Commit 5ebe802

Browse files
authored
Merge pull request #244 from Isengo1989/docs/add-relaxed-header-info
Docs/add relaxed header info
2 parents 122ad80 + 6c91070 commit 5ebe802

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This action uses [PySpelling][pyspelling] to check spelling in source files in t
2828
- [Extra Configuration](#extra-configuration)
2929
- [Extra Configuration for PySpelling](#extra-configuration-for-pyspelling)
3030
- [Extra Configuration for Markdown](#extra-configuration-for-markdown)
31+
- [Extra Configuration for Superfences](#extra-configuration-for-superfences)
3132
- [Spellcheck Configuration File](#spellcheck-configuration-file)
3233
- [Predefined Name](#predefined-name)
3334
- [Specifying Number of Jobs for Parallel Processing](#specifying-number-of-jobs-for-parallel-processing)
@@ -305,6 +306,18 @@ Currently only the case of use of `superfences` has been requested as outlined i
305306

306307
Do also see the Diagnostics sections below, demonstrating diagnostics emitted from [Python Markdown][markdown], which might require the use of an extension.
307308

309+
##### Extra Configuration for Superfences
310+
311+
Some statis site generators like Vitepress or Docusaurus use the code fence line for extra information, for example line highlighting or code block headlines. Superfencing
312+
would break here and spelling would be checked in the specific code section. To avoid this you can set the `relaxed_headers` option to `true`.
313+
314+
```yaml
315+
- pyspelling.filters.markdown:
316+
markdown_extensions:
317+
- pymdownx.superfences:
318+
relaxed_headers: true
319+
```
320+
308321
## Spellcheck Configuration File
309322

310323
You can either provide a path to the configuration file or save a file in the root of your repository with a predefined name (list below). If `config_path` is provided then it will be used and the other configuration options will be ignored. If `config_path` is not provided then the repository is searched after a first match

0 commit comments

Comments
 (0)