Coder Social home page Coder Social logo

nikitavoloboev / markdown-parser Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 3.0 93 KB

Go library to parse markdown to grab various things

Home Page: https://pkg.go.dev/github.com/nikitavoloboev/markdown-parser?tab=doc

License: MIT License

Go 100.00%
markdown parser golang-library go

markdown-parser's Introduction

Markdown Parser Docs

Go library to parse markdown to grab various things

This library will parse a given markdown file and grab all links from it and put it into a hashmap map[string]string to use.

Install

go get -u github.com/nikitavoloboev/markdown-parser

Usage

See Docs.

You can see this library being used in Alfred Awesome Lists to grab all links from Sindre's awesome lists and filter the results in Alfred.

Contribute

Always open to useful ideas or fixes in form of issues or PRs.

Can open new issue (search existing issues first) or start discussion.

It's okay to submit draft PR as you can get help along the way to make it merge ready.

Join Discord for more indepth discussions on this repo and others.

๐Ÿ–ค

Support on GitHub or look into other projects.

Discord X nikiv.dev

markdown-parser's People

Contributors

ingve avatar jletey avatar nikitavoloboev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

markdown-parser's Issues

Testing Locally

How exactly should I test to see if my edited code works? I see that you have a parser_test.go file, but I can't seem to test it without getting an error (go test parser_test.go):

# command-line-arguments [command-line-arguments.test]
./parser_test.go:9:6: missing function body
./parser_test.go:10:6: missing function body
./parser_test.go:11:6: missing function body
./parser_test.go:15:2: undefined: ParseLinkWithDescription
./parser_test.go:20:17: undefined: ParseMarkdownFile
FAIL	command-line-arguments [build failed]

Note that I do have my fork cloned into ~/go/src/johnletey/markdown-parser

Add support for parsing image links

Image embedding in markdown works like:

![](https://i.imgur.com/ZVPjkzh.png)

The API should given a line recognize if it's an embedded image and if it is should extract the link inside it [<link>].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.