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

Add an option to "include" function to increment headings #48

Open
gajus opened this issue Aug 9, 2016 · 0 comments
Open

Add an option to "include" function to increment headings #48

gajus opened this issue Aug 9, 2016 · 0 comments

Comments

@gajus
Copy link
Owner

gajus commented Aug 9, 2016

Add an option to the include file function that would increment heading size of the document being included to the size of the host section heading.

Example:

Source README.md:

# README

## Section where LICENSE is included

{"gitdown": "include", "file": "./LICENSE.md","adjustHeading":"contain"}

Source LICENSE.md:

# LICENSE

Foo

## bar

Bar

Current output:

# README

## Section where LICENSE is included

# LICENSE

Foo

## bar

Bar

Desired output:

# README

## Section where LICENSE is included

### LICENSE

Foo

### bar

Bar
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

1 participant