Commit Graph

40 Commits

Author SHA1 Message Date
cnngimenez
527ce87206 Merge 2022-01-10 19:12:19 -03:00
cnngimenez
7c3300ace1 Bug fixed when section has no text but has properties.
An error appeared when a header has no text but it has properties. For instance:
```org
* A header
:PROPERTIES:
:ID:       7159694c-0e06-41d6-a2fc-1ae3f9ba0321
:END:

* Another header
```

"A header" is processed by `org-gemini-section` and throws error when
exporting: `contents` parameter is nil instead of empty string. "Another
header" is considered a headline and not a section.
2022-01-10 21:02:28 +00:00
cnngimenez
747201272b Bug fixed when section has no text but has properties.
An error appeared when a header has no text but it has properties. For instance:
```org
* A header
:PROPERTIES:
:ID:       7159694c-0e06-41d6-a2fc-1ae3f9ba0321
:END:

* Another header
```

"A header" is processed by `org-gemini-section` and throws error when
exporting: `contents` parameter is nil instead of empty string. "Another
header" is considered a headline and not a section.
2022-01-10 15:30:46 -03:00
cnngimenez
249d2be0e0 Encode URL in exported links. 2022-01-10 11:58:50 -03:00
cnngimenez
3f1aabc140 Use #+name: to add names to exported code blocks. 2022-01-10 11:58:14 -03:00
cnngimenez
149c38ebf3 quote-block export: multiple lines should start with ">".
Using some ox-md.el code to fix this.
2022-01-10 03:33:40 -03:00
Omar Polo
b69e7418fd make compile the default target
Make uses the first target defined if one is not specified on the
command line.  This makes the `compile' target the default one, which
seems more sensible than the `update'.

Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-18 21:37:39 -07:00
Omar Polo
c4299fb931 nitpicking
Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-18 21:37:35 -07:00
Omar Polo
087359e851 use replace-regexp-in-string instead of string-replace
string-replace is new of emacs 28, while replace-regexp-in-string is
quite old.  This avoids the backport, and should be a tad faster since
it don't have to waste cycle to regexp-quote "\n".

Tested on emacs 27.2

Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-18 21:37:31 -07:00
Omar Polo
b6b6f595f2 fix checkdoc warning
Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-17 09:51:40 -07:00
Omar Polo
900c15ca0b use ${EMACS} instead of `emacs'
This makes possible to use a different emacs executable to run the
tests.

	$ make
	# use system' emacs
	...

	$ make EMACS=/path/to/emacs
	# use the provided emacs executable
	...

Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-17 09:51:35 -07:00
Omar Polo
d680aacf9d improve `make lint'
Drop the checkdoc-batch library in favour of a simpler approach:
run checkdoc on all *.el files in the repo, bailing out on the first
encountered error.

While here, don't call checkdoc on eval.

Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-17 09:51:28 -07:00
Justin Abrahms
85d28a65c6 Support for string-replace in old emacs 2021-08-13 16:08:16 +00:00
Justin Abrahms
8041774d3d Version debugging info 2021-08-13 15:15:50 +00:00
Justin Abrahms
5e8602b656 Update stderr location to work w/ CI 2021-08-13 15:14:25 +00:00
Justin Abrahms
eb66b35ad4 Checkdoc script pipes to stderr in build environment 2021-08-13 15:11:53 +00:00
Justin Abrahms
7897f8eb84 Untabify 2021-08-13 15:09:02 +00:00
Omar Polo
1e4cabf98a don't leave # when there isn't a title
and while there ensure that there's an empty line following the
document title.

Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-13 15:02:24 +00:00
Omar Polo
8bbc1c9f6d leave a blank line after the link blocks
Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-13 15:01:48 +00:00
Omar Polo
4572682a99 fix paragraph
ox-gemini inherits the behavior of ox-ascii of folding the
paragraphs.  It's wrong because in gemini paragraphs are a single
long line.  This is an attempt at fixing it.

Signed-off-by: Justin Abrahms <justin@abrah.ms>
2021-08-13 15:01:27 +00:00
Justin Abrahms
86964652c4 Adding checkdoc analysis to ensure there aren't regressions. 2021-08-13 14:56:48 +00:00
Justin Abrahms
d88c10bcb1 handle #+begin_quote to gemini quote lines 2021-01-02 07:17:55 -08:00
Justin Abrahms
5b50b6e8d1 cd into repo 2020-11-25 09:23:07 -08:00
Justin Abrahms
2a7428385b build manifest for CI 2020-11-25 09:20:44 -08:00
Justin Abrahms
c15d7a3c08 support for some basic tests 2020-11-25 09:16:45 -08:00
Justin Abrahms
577652feec checkdoc passes now 2020-11-25 09:03:30 -08:00
Justin Abrahms
4e8f298baa add license identifier 2020-11-25 09:03:23 -08:00
Justin Abrahms
75b192c5e4 ignore elc files 2020-11-25 08:55:31 -08:00
Justin Abrahms
1164449c20 fix byte-compile errors 2020-11-25 08:55:19 -08:00
Justin Abrahms
d624d900bb one docs change was in the wrong spot. Remove it. 2020-11-11 23:36:14 -08:00
Justin Abrahms
8586faf137 docs & lint changes 2020-11-11 23:35:20 -08:00
Justin Abrahms
4fe31afef6 add todos 2020-11-11 22:59:56 -08:00
Justin Abrahms
d56610d7bb correctly link relative files 2020-11-07 21:54:10 -08:00
Justin Abrahms
156a19c731 support for publishing 2020-11-07 21:54:04 -08:00
Justin Abrahms
f2f6d73e94 list items should begin with * not - 2020-11-07 21:53:56 -08:00
Justin Abrahms
1d3d5f8ced formatting 2020-11-07 20:03:09 -08:00
Justin Abrahms
8666d98166 move readme to markdown. 2020-11-07 20:02:39 -08:00
Justin Abrahms
46cd91a736 license 2020-11-07 20:00:27 -08:00
Justin Abrahms
79bf58e41f clean up comments. 2020-11-07 16:20:34 -08:00
Justin Abrahms
1387e3205b Initial commit 2020-11-07 16:19:04 -08:00