Skip to content

Commit

Permalink
Merge pull request #250 from jsoref/spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored Oct 19, 2024
2 parents adc8efb + 3c3c329 commit e27b36a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Running doctoc will insert the toc at that location.

### Specifying a custom TOC title

Use the `--title` option to specify a (Markdown-formatted) custom TOC title; e.g., `doctoc --title '**Contents**' .` From then on, you can simply run `doctoc <file>` and doctoc will will keep the title you specified.
Use the `--title` option to specify a (Markdown-formatted) custom TOC title; e.g., `doctoc --title '**Contents**' .` From then on, you can simply run `doctoc <file>` and doctoc will keep the title you specified.

Alternatively, to blank out the title, use the `--notitle` option. This will simply remove the title from the TOC.

Expand Down
2 changes: 1 addition & 1 deletion lib/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getMarkdownHeaders (lines, maxHeaderLevel) {
else if (x.type === md.Syntax.Image) {
// Images (at least on GitHub, untested elsewhere) are given a hyphen
// in the slug. We can achieve this behavior by adding an '*' to the
// TOC entry. Think of it as a "magic char" that represents the iamge.
// TOC entry. Think of it as a "magic char" that represents the image.
return '*';
}
else {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/readme-with-nested-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ the link URL.

Chat with the Cockatrice developers on Gitter. Come here to talk about the application, features, or just to hang out. For support regarding specific servers, please contact that server's admin or forum for support rather than asking here.

# Translation Status [![Cockatrice on Transiflex](https://ds0k0en9abmn1.cloudfront.net/static/charts/images/tx-logo-micro.646b0065fce6.png)](https://www.transifex.com/projects/p/cockatrice/)
# Translation Status [![Cockatrice on Transifex](https://ds0k0en9abmn1.cloudfront.net/static/charts/images/tx-logo-micro.646b0065fce6.png)](https://www.transifex.com/projects/p/cockatrice/)

Cockatrice uses Transifex for translations. You can help us bring Cockatrice/Oracle to your language or edit single wordings by clicking on the associated charts below.<br>
Our [project page](https://www.transifex.com/projects/p/cockatrice/) offers a detailed overview for contributors.
Expand Down
2 changes: 1 addition & 1 deletion test/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ test('transforming when old toc exists and --all flag is set', function (t) {
})


// bigbucket.org
// bitbucket.org
check(
[ '# My Module'
, 'Some text here'
Expand Down

0 comments on commit e27b36a

Please sign in to comment.