Skip to content
Hatena Notation (はてな記法) Parser written in Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
parser Add custom JSON marshaling Jul 24, 2017
.gitignore Named as gohn Aug 3, 2017
.travis.yml Setup Travis Feb 27, 2017
LICENSE + License clause and about author Jul 23, 2017
Makefile Move into parser package for library usage Jul 23, 2017
README.markdown Named as gohn Aug 3, 2017
cli.go Named as gohn Aug 3, 2017
main.go + Initial CLI implementations Dec 29, 2016



gohn (Hatena Notation parser written in Go) is a parser for Hatena Notation (a.k.a. はてな記法).

⚠️ This software is like a sketch. API or any design may change without notice.

AST definition

See schema.json


Why do we implement new Hatena Notation parser although there are several implementations?

In short, all of other implementations have a problem about complexity, or (and) lack of formal specification.


The original Hatena Notation spec. and its implementation have some very complex features. For example, [URL:title] notation that tells the parser retrieve URL and use retrieved page title for anchor text.

Former implementations have failed to separation of concerns.

Lack of formal specification

As mentioned earlier, we have a specification of Hatena Notation, but it is not formal. In other words, former implementations are also informal specification.

This means we have to know how implementations work if we want to know definition of some notations.

It also causes lost of encapsulation, so changes will be mostly breaking.




The package is available as open source under the terms of the MIT License (see LICENSE).

You can’t perform that action at this time.