From c3b43b361e6d054e7e9f246e06cae3fb5c1f0454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 2 Feb 2019 16:04:30 +0100 Subject: [PATCH] OX-HUGO: cventry now at org heading level Previously a cventry was inside a div and forced a h3 heading. The content would not me inside the div because on markdown it wouldn't be rendered. For limitation it is better to drop the div, make the heading respect the org level and the properties list is just in one UL tag --- ox-hugocv.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ox-hugocv.el b/ox-hugocv.el index 073c2b5..fa704cd 100644 --- a/ox-hugocv.el +++ b/ox-hugocv.el @@ -72,21 +72,22 @@ CONTENTS holds the contents of the headline. INFO is a plist used as a communication channel." (let ((from-date (org-element-property :FROM headline)) (to-date (org-element-property :TO headline)) + (loffset (string-to-number (plist-get info :hugo-level-offset))) ;"" -> 0, "0" -> 0, "1" -> 1, .. + (level (org-export-get-relative-level headline info)) (title (org-export-data (org-element-property :title headline) info)) (employer (org-element-property :EMPLOYER headline)) (location (or (org-element-property :LOCATION headline) ""))) - (format "\n
-

%s

-
+ (format "\n%s + + %s " - title + (concat (make-string (+ loffset level) ?#) " " title) employer location (concat (org-hugocv-timestamp-to-shortdate from-date)