blackfriday
xpath
Our great sponsors
blackfriday | xpath | |
---|---|---|
4 | 1 | |
5,352 | 649 | |
- | 1.4% | |
0.0 | 6.8 | |
3 months ago | 10 days ago | |
Go | Go | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
blackfriday
-
I wrote a markdown to html converter
unless this is an exercise in "how to make my own markdown processor" I'd suggest using proven https://github.com/russross/blackfriday
-
Question about goldmark
Have you looked at other libraries, if this one doesn't have the features you want? For example Black Friday might be more to your liking.
-
Compounding Competence
On the backend when generating the emails: For this, I chose a popular Go markdown library BlackFriday.
-
Crow: A simple command-line utility (written in Go) that lets you repeat any command when you change certain files.
go: downloading github.com/russross/blackfriday/v2 v2.0.1
xpath
-
I have this code On Playground.. It is very simplified... but when reading from file it breaks and cannot handle rune characters.... The strings.Replace function just stops working
It looks like you're trying to parse HTML by using the strings package. For reference, you might be better off using an xpath tool or the html package that has built-in tokenizers to do your tokenizing. That makes it easier to find the nodes you're looking for and the values contained within those nodes.
What are some alternatives?
goldmark - :trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
colly - Elegant Scraper and Crawler Framework for Golang
github_flavored_markdown - GitHub Flavored Markdown renderer with fenced code block highlighting, clickable header anchor links.
GoQuery - A little like that j-thing, only in Go.
ODF - Open Document Format (ODF) generator library for Go.
jsonpath - JSONPath with dot notation generator for golang
xquery
Slugify - A Go slugify application that handles string
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt
align - A general purpose application and library for aligning text.
go-pkg-xmlx
html-to-markdown - ⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.