Skip to content

Commit

Permalink
Update FAQ to cover no parameters in slugify
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 31, 2024
1 parent 722461c commit 88a9463
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/src/markdown/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ markdown_extensions:
permalink: "\ue157"
```
To specify a particular emoji generator in the Emoji extension, which just requires a simple function reference:
If no parameters are needed, `#!yaml !!python/object/apply:` still require `{}` at the end.

```yaml
markdown_extensions:
- markdown.extensions.toc:
slugify: !!python/object/apply:pymdownx.slugs.slugify {}
permalink: "\ue157"
```

To specify a particular emoji generator in the Emoji extension, this requires just a simple function reference using
`#!yaml !!python/name:`. These take no parameters and do not require `{}` at the end.

```yaml
markdown_extensions:
Expand Down

0 comments on commit 88a9463

Please sign in to comment.