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

%5C bug with --github option #223

Open
jackens opened this issue Mar 17, 2022 · 3 comments
Open

%5C bug with --github option #223

jackens opened this issue Mar 17, 2022 · 3 comments

Comments

@jackens
Copy link

jackens commented Mar 17, 2022

doctoc-bug.md:

## TOC

<!-- START doctoc -->
<!-- END doctoc -->

## Interface: SOME\_NAME<\>

42

Running doctoc --github doctoc-bug.md produces

## TOC

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Interface: SOME\_NAME<\>](#interface-some%5C_name%5C)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Interface: SOME\_NAME<\>

42

while there should be no %5C

@QiqyAdelya
Copy link

doctoc-bug.md:

## TOC

<!-- START doctoc -->
<!-- END doctoc -->

## Interface: SOME\_NAME<\>

42

Running doctoc --github doctoc-bug.md produces

## TOC

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Interface: SOME\_NAME<\>](#interface-some%5C_name%5C)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Interface: SOME\_NAME<\>

42

while there should be no %5C

@quicktrick
Copy link

I ran into a similar problem, but with the --gitlab option, after updating doctoc from v2.0.0 to v2.2.1 . I reverted back to [email protected]. Everything is fine there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@jackens @quicktrick @QiqyAdelya and others