blog
goldmark
blog | goldmark | |
---|---|---|
3 | 13 | |
0 | 3,716 | |
- | - | |
0.0 | 7.3 | |
almost 2 years ago | about 2 months ago | |
HTML | Go | |
MIT License | 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.
blog
-
The strongest principle of the blog's growth lies in the human choice to deploy it
I noticed that after deployment images were broken after further research it became clear that this happens because we are using baseURL with path - https://imomaliev.github.io/blog/. This is known behavior. It does look like a bug to me, but maintainers decided to close this issue as "wontfix" for now. In the future, I am planning to host this blog on my domain without additional path in baseURL, but for now I fixed it by using relative paths instead ones starting with leading /.
-
Building the plane while flying it
I will start from the very beginning and create this blog from the scratch. This series is called "Building the blog while flying it". In the spirit of famous startup quote/approach, "Building the plane while flying it"1. I think I will have a lot of fun. I am going to start by posting to my dev.to page and host blog repository on the GitHub. My first version of this blog is living in the blog-v1 repo.
goldmark
-
Create a Hugo Theme from Scratch - III
Hugo uses goldmark to render markdown, and render hooks allow developers to override the rendering of specific components. Currently supported are:
-
Markdown library recommendations
Goldmark used by Hugo.
-
I wrote a markdown to html converter
Yuin/Goldmark is the new standard Go Markdown processor. Black Friday is older.
-
Sweeter searches with Pagefind
As for Hugo with its built-in goldmark Markdown parser and included Footnote extension, a footnote’s HTML begins like this (here, it’s the first footnote in a page):
-
Question about goldmark
I am writing a library to convert markdown to HTML. In Go, the common library is https://github.com/yuin/goldmark.
-
The strongest principle of the blog's growth lies in the human choice to deploy it
Hugo -> goldmark -> goldmark-highlighting -> chroma
-
Run README.md in your terminal
Primarily born out of the annoyance of never-ending README copy & paste, our teammate Adam Babik decided to utilize a Markdown Abstract Syntax Tree parser to generate a naive digest of README snippets and make them easily runnable. This is a prototype (take the happy path!), but we are pleased with the initial results. Illustrated here using Husky - a popular solution to manage git hooks:
-
Hugo.io - Multiline cells in a table
Building table in markdown is super easy and well-documented. However, having a bit of formatting within it, like carriage return within a cell as below is not possible by default. Hugo uses Goldmark (a CommonMark implementation in Go) to process the markdown. Apparently it's extremely fast, with this implementation we choose to block any HTML processing d'HTML by default.
-
Is Astro ready for your blog?
Comparison: By default, Eleventy uses Markdown-it; like Astro, Gatsby and Next.js use Remark; and Hugo uses goldmark. As for Astro’s ability to mix components and Markdown on a page, probably the closest analogy to this is the use of MDX files in Gatsby and Next.js; Eleventy and Hugo can’t do this (however, see also “Components,” below, for some words on how Eleventy and Hugo use shortcodes which can provide some degree of code-in-Markdown functionality). Note that migrating an existing site to Astro from any of these other platforms probably will involve far more editing to your existing Markdown content than if you were migrating between two of the non-Astro platforms in this mix.
-
Generating HMTL and MD files from .TXT in GO
3rd party libraries: goldmark for converting MD syntax to HTML
What are some alternatives?
terraform-provider-github - Terraform GitHub provider
blackfriday - Blackfriday: a markdown processor for Go
blog-v1 - Personal blog
markdown - markdown parser and HTML renderer for Go
goldmark-highlighting - A Syntax highlighting extension for the goldmark markdown parser.
easy-markdown-editor - EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
actions-hugo - GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
go-exprtk - Go Mathematical Expression Toolkit. Run-time mathematical expression parser and evaluation engine.
til - TIL
chroma - A general purpose syntax highlighter in pure Go
cache - Cache dependencies and build outputs in GitHub Actions
Markov Chain Algorithm - A Markov chain algorithm generates text by creating a statistical model of potential textual suffixes for a given prefix.