coleslaw-org / coleslaw

Flexible Lisp Blogware
BSD 2-Clause "Simplified" License
553 stars 82 forks source link

Built in org-mode support? #195

Open hilmandayo opened 3 years ago

hilmandayo commented 3 years ago

Is there any way or plan of supporting org-mode for blogging? I mean, it is natural to have org-mode support built in for a lisp project :).

shukryzablah commented 3 years ago

If you were interested in having support for this, an important place to start could be render-text in src/content.lisp.

(defgeneric render-text (text format)
  (:documentation "Render TEXT of the given FORMAT to HTML for display.")
  (:method (text (format (eql :html)))
    text)
  (:method (text (format (eql :md)))
    (let ((3bmd-code-blocks:*code-blocks* t))
      (with-output-to-string (str)
        (3bmd:parse-string-and-print-to-stream text str)))))

If you find a dependency that does for org what 3bmd does for markdown, then it could be easy to implement.

shukryzablah commented 3 years ago

Actually look at the Markless and ReStructuredText plugins.

dertuxmalwieder commented 2 years ago

In theory, there is common-org and/or CL-ORG-MODE which could help ...

KonstantinDjairo commented 9 months ago

it sounds pretty natural that a lisp blog would use org-mode