Closed kesmit13 closed 5 years ago
As discussed and agreed in issue #166, the change will be more exhaustive, and define an interface for each MIME type that gophernotes knows about - around 10 - plus multi-format interfaces.
See pull request https://github.com/gopherdata/gophernotes/pull/169
It would be nice if gophernotes would allow automated HTML rendering like Jupyter with Python. While the Python version uses special methods such as _reprhtml, a Go implementation would be more natural using interfaces. My proposed change would add an HTMLer interface with a method signature
HTML() string
. TherenderResults
function could then detect whether or not there were any HTMLers in the arguments and render atext/html
key in the results as well as aplain/text
.