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

Added support for foldable, atx-style markdown headings (#); plus listing of images, and tables #177

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

mbroedl
Copy link

@mbroedl mbroedl commented Aug 3, 2017

A hierarchy of Markdown headings is created and foldable.
The extensions also search for tables (pandoc style) and images in the file.

This solves issues #173 , #135 , #127 .

Markdown filtering in lib/.ctags
- analysing header levels 1 to 6 (ATX style)
- finding images (anywhere) and tables (via 'Table: ...' caption
  at the beginning of the line)

Styles for headings and pictures
- using before icons (standard unicode characters) for header
  levels, images, and table
- increase font size for header-1 and header-2
- bold font-weight for header-1

function buildMarkdownParents() in lib/tag-parser.coffee
- add function to parse Markdown hierarchy
- parse header levels and attach to hierarchy tree
- next highest heading is chosen
- add tag.parentTag to keep consistency with remainder of function
to avoid issues with repeating heading titles, the row number is
added to the autogenerated key
sort types of tags in markdown documents in order to not have the
order header-1 to header-6 disturbed by images or tables
in case a header-level is left out in the document, an alert-triangle
appears after the header-name
@mbroedl mbroedl changed the title Add support for foldable, multi level markdown headings; plus listing of images, and tables Added support for foldable, multi level markdown headings; plus listing of images, and tables Aug 3, 2017
@mbroedl mbroedl changed the title Added support for foldable, multi level markdown headings; plus listing of images, and tables Added support for foldable, atx-style markdown headings (#); plus listing of images, and tables Aug 3, 2017
@nicolashainaux
Copy link

Looks very interesting! I'll most probably integrate this into the fork symbols-tree-nav, if you don't mind!

@mbroedl
Copy link
Author

mbroedl commented Aug 4, 2017

Please do! Would be nice to add more atom functionality to the world of markdown writing! :)

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

Successfully merging this pull request may close these issues.

2 participants