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

Use "include" preprocessor attributes in "chapters" block of foliant.yml #67

Open
v4dkou opened this issue Dec 2, 2022 · 0 comments
Open

Comments

@v4dkou
Copy link

v4dkou commented Dec 2, 2022

Consider adding YAML tags for "chapters" block that work as "includes" preprocessor
https://foliant-docs.github.io/docs/preprocessors/includes/

For example:

chapters:
    - Animals:
        - !set_head 2 elephant.md
        - lion.md

Temporary solutions
For now we use intermediate files like this

animals_index.md

# Animals:
<include src="elephant.md" sethead="2"></include>
<include src="lion.md" sethead="2"></include>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants