Skip to content

render event description html #258

@mooseyboots

Description

@mooseyboots

my calendar event descriptions almost always have a bunch of html in them.

it seems like it is possible to render it like so, in org-gcal--update-entry:

    ;; Insert event description if present.
    (when desc
      (let ((beg (point)))
        (insert (replace-regexp-in-string "^\*" "" desc))
        (shr-render-region beg (point)))
      (insert (if (string= "\n" (org-gcal--safe-substring desc -1)) "" "\n")))

link to the code:

;; Insert event description if present.

this makes my events much easier to read.

perhaps this could be a customize option or something? (i don't know this library's code, so i'm unsure if this could cause any issues elsewhere.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions