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 possibility to customize tag used to include heading in TOC. #13

Open
3ndriu opened this issue Aug 25, 2016 · 4 comments
Open

Add possibility to customize tag used to include heading in TOC. #13

3ndriu opened this issue Aug 25, 2016 · 4 comments

Comments

@3ndriu
Copy link

3ndriu commented Aug 25, 2016

It would be nice if there was possibility to customize tag (I mean !heading) which tells whether specified heading is included in table of contents.

I have a case, when I compile a few markdown files into a single file and I'd like to have a TOC in resulting file, but at the same time I'm using the original file and I don't want !heading text to be visible in headings. With customization I could put tag inside comment and specify that TOC should contain headings marked with, for instance, <!-- !heading -->.

@sethen
Copy link
Owner

sethen commented Sep 5, 2016

I am afraid I am having a hard time understanding what you're asking here. Could you give me a more concrete example of the functionality you would like to see here?

@3ndriu
Copy link
Author

3ndriu commented Sep 6, 2016

In short, currently if I want to have some heading included in table of contents generated by markdown-include, I have to do it like this: # Some heading !heading. It would be nice to have the possibility to replace !heading with something else so I can write, for instance, # Some heading !whatever and have the Some heading entry in the table of contents.

I hope it's more clear now.

@sethen
Copy link
Owner

sethen commented Sep 6, 2016

Oh, so you just want a way to be able to replace the keyword of !heading with something else that you've defined? That seems easy enough. Currently there is nothing like that in markdown-include for you to be able to define your own custom keywords for !heading.

I will look at this and see if it's something I can implement quickly.

@3ndriu
Copy link
Author

3ndriu commented Sep 12, 2016

Yes, this is exactly what I was asking about. Thanks in advance.

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