buildkite / terminal-to-html

Converts arbitrary shell output (with ANSI) into beautifully rendered HTML
http://buildkite.github.io/terminal-to-html
MIT License
649 stars 45 forks source link

Readability improvements & documentation #42

Closed mipearson closed 7 years ago

mipearson commented 7 years ago

Adds documentation to the parser state machine, as the last time I looked at it I didn't understand how it worked.

Changes style.go and the related type to be able the style it represents rather than CSS classes, making it slightly easier to understand how and why it works.