~eliasnaur/gio-example

6253df27de9b09d379593047362815afddfa87d4 — Chris Waldon a month ago 171a6b4
markdown: update to new API

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M markdown/main.go
M markdown/main.go => markdown/main.go +1 -1
@@ 131,7 131,7 @@ func (ui *UI) Update(gtx C) {
	for _, event := range ui.Editor.Events() {
		if _, ok := event.(widget.ChangeEvent); ok {
			var err error
			ui.Theme.cache, err = ui.Renderer.Render(ui.Theme.Base, []byte(ui.Editor.Text()))
			ui.Theme.cache, err = ui.Renderer.Render([]byte(ui.Editor.Text()))
			if err != nil {
				// TODO(jfm): display UI element explaining the error to the user.
				log.Printf("error: rendering markdown: %v", err)