All Projects → alexander-lee → markdown-github-bear-toc

alexander-lee / markdown-github-bear-toc

Licence: MIT License
Autogenerated Table of Contents for Github Markdown or Bear Notes

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to markdown-github-bear-toc

md-toc
Automatically generate a compliant table of contents for a markdown file to improve document readability
Stars: ✭ 18 (-77.22%)
Mutual labels:  table-of-contents
vim-eightheader
Vim plugin: Easily create custom headlines, foldtext, toc, etc
Stars: ✭ 17 (-78.48%)
Mutual labels:  table-of-contents
Honey
A Swift API for interacting with Bear.
Stars: ✭ 22 (-72.15%)
Mutual labels:  bear
markedpp
Preprocessor for markdown files
Stars: ✭ 21 (-73.42%)
Mutual labels:  table-of-contents
toctoc
Generates and maintain a Table of Content for your README.md.
Stars: ✭ 16 (-79.75%)
Mutual labels:  table-of-contents
markdown-index
Generate a global index for multiple markdown files recursively
Stars: ✭ 15 (-81.01%)
Mutual labels:  table-of-contents
gh2md
Export Github repository issues, pull requests and comments to markdown.
Stars: ✭ 95 (+20.25%)
Mutual labels:  github-markdown
typora-theme-bear
一系列 Bear 风格的 typora 主题,共计 20 余款。A collection of typora themes, inspired by Bear.
Stars: ✭ 61 (-22.78%)
Mutual labels:  bear
grizzly
Extra utilities for Bear 🐻
Stars: ✭ 20 (-74.68%)
Mutual labels:  bear
indices
Indices creates a Table of Contents sidebar for Medium articles, and enables you to skip around
Stars: ✭ 16 (-79.75%)
Mutual labels:  table-of-contents
bearclaw
Menubar app to quickly create new notes in Bear
Stars: ✭ 60 (-24.05%)
Mutual labels:  bear
tocdown
A table of contents generator for markdown
Stars: ✭ 11 (-86.08%)
Mutual labels:  table-of-contents
medium-toc
Easily create a table of contents for your Medium articles in just one click. ✨
Stars: ✭ 33 (-58.23%)
Mutual labels:  table-of-contents
tw5-locator
TiddlyWiki plugin: Discover and search by context, related tags
Stars: ✭ 38 (-51.9%)
Mutual labels:  table-of-contents
tocer
A command line interface for generating table of contents for Markdown files.
Stars: ✭ 44 (-44.3%)
Mutual labels:  table-of-contents
github-markdown-tailwindcss
⛵ Replicate GitHub Flavored Markdown with Tailwind CSS components
Stars: ✭ 100 (+26.58%)
Mutual labels:  github-markdown
Github Markdown Toc
Easy TOC creation for GitHub README.md
Stars: ✭ 2,734 (+3360.76%)
Mutual labels:  table-of-contents
bear
Add to each Bear note a back-reference to notes that are citing it.
Stars: ✭ 28 (-64.56%)
Mutual labels:  bear
bhugo
A tool to transform Bear notes into Hugo-compatible markdown files
Stars: ✭ 51 (-35.44%)
Mutual labels:  bear

Autogenerated Table of Contents for Github Markdown or Bear Notes

Generated by the script ;)

Table of Contents

Overview

I love using Bear Notes for note taking of all sorts. Recently, Bear released a feature that allowed headers to be linked with x-callback-urls. And thus, I created a script to autogenerate a Table of Contents for your notes based on the headers.

Installation

NOTE: This program is only compatible with Python 3.x

PyPi (Preferred)

$ pip3 install markdown-toc --upgrade

Manually

$ git clone https://github.com/alexander-lee/markdown-github-bear-toc.git

$ cd markdown-github-bear-toc
$ python3 setup.py install

Usage

Flags

  • -h or --header-priority is the Limiting Header Priority/Strength (whether you limit your Table of Contents to h3s or h4s)
  • -t or --type is the type of anchor you want to use (Github or Bear x-callback-url)
  • --no-write is a flag on whether you want to disable the feature that automatically injects the ToC into your Markdown file or Bear Note
  • -toc or --table-of-contents-style is the Markdown style for your Table of Contents header

With Bear

  • Add a Table of Contents to a Bear Note with the title "Bear Note Title"
$ markdown-toc -h <default: 3> -t bear [--no-write] "Bear Note Title"

  • Add a Table of Contents to a Bear Note with the UUID 20703126-FA33-400A-B98E-F55F57E3EF48-47683-000143B2335758CA
$ markdown-toc -h <default: 3> -t bear [--no-write] "20703126-FA33-400A-B98E-F55F57E3EF48-47683-000143B2335758CA"

  • Add a Table of Contents to two Bear Notes with titles "Bear Note Title 1" and "Bear Note Title 2"
$ markdown-toc -h <default: 3> -t bear [--no-write] "Bear Note Title 1" "Bear Note Title 2"

  • Add a Table of Contents to all Bear Notes that contain the tag #bear OR tag #beet
$ markdown-toc -h <default: 3> -t bear [--no-write] "#bear" "#beet"

  • This allows you to take input a list of Bear Note titles, tags, or UUIDs and will inject the ToC into your note whether or not you submit the --no-write flag.
  • If you have #tags at the top of your note (cause I use them to categorize my notes), it will inject the ToC right after any tags.
Original Note Note with ToC
Original Note Note with ToC

With Markdown Files

  • Add of a Table of Contents to README.md (Using Github Anchors)
$ markdown-toc -h <default: 3> -t github [--no-write] README.md

  • Add of a Table of Contents to README.md and Folder/README2.md (Using Github Anchors)
$ markdown-toc -h <default: 3> -t github [--no-write] README.md Folder/README2.md
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].