Kaushal Modi
ad98ebf498
Workaround for Blackfriday bug in italicizing links with underscores
...
Replaces underscores with "%5F" (hex code for underscores) in
links (only of http, https, ftp and mailto type).
- Fixes https://github.com/kaushalmodi/ox-hugo/issues/170 .
Revert his commit once
https://github.com/russross/blackfriday/issues/278 gets fixed.
8 years ago
Kaushal Modi
123ccd4cdc
Remove duplicate authors
...
This can very well happen in a scenario like this:
#+setupfile: some-file.org # some-file.org contains "#+author: Foo Bar"
#+author: Foo Bar
8 years ago
Kaushal Modi
4d22bcda67
Add tests to assure that empty sections are supported
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/164
8 years ago
Kaushal Modi
1afb24a8c8
Make the "Table of Contents" heading a div element instead of h2
...
Hard-coding the "Table of Contents" heading to h2 now looked like a
bad idea.. it seems semantically incorrect. So now it is a div tag.
This also allows more flexibility on how to show that "Table of
Contents" heading. See
https://ox-hugo.scripter.co/doc/org-toc/#table-of-contents-heading
for more info.
This is a "breaking change" in the sense that that heading will no
longer auto-render looking like a heading. So user might need to add
some CSS to make it look just like before. See example CSS in the
above doc link.
8 years ago
Kaushal Modi
85b19cc175
Add more tags to the last two tests
8 years ago
Kaushal Modi
93b2a334d7
Export the TODO states in the headlines in TOC too
...
Set "#+options: todo:nil" to disable TODO state exports -- both in the
body and TOC.
Fixes https://github.com/kaushalmodi/ox-hugo/issues/163 .
8 years ago
Kaushal Modi
a716fee972
org-hugo--quote-string now returns an empty quoted string by default
8 years ago
Kaushal Modi
bbba8fc073
Add example of author>authors front-matter replacement
...
Ref: https://github.com/MunifTanjim/minimo/issues/142
8 years ago
Kaushal Modi
c504e21c62
Leave the front-matter values that would be bigints as strings
8 years ago
Kaushal Modi
49ac57709c
Support links to CUSTOM_ID's of Org files
...
This commit adds more support to cross-linking of Org files, though
only for the per-file export flow.
Now a link like [[./foo.org::#bar]] will export to {{< relref
"foo#bar" >}}.
8 years ago
Kaushal Modi
bf68e6b175
More details/summary tests
8 years ago
Kaushal Modi
c860032e8e
Update an inline HTML -- Special Block test based on prev commit
8 years ago
Kaushal Modi
3896f2940b
Move the details Special Block parsing to ox-blackfriday
...
Change the open drawer attr_html syntax from "open" to ":open t" to
fit with general Org attr_html syntax.
Always insert a newline before/after the string wrapped by inline HTML
elements.
8 years ago
Kaushal Modi
b23348cd84
Update documentation and tests about details/summary
...
Related to
2bc4448841
Discussion on Org mailing list on why this change was made:
http://lists.gnu.org/r/emacs-orgmode/2018-05/msg00456.html
Thanks to Aaron Ecay for nudging to do the Right Thing(TM) and not use
the hackish "---" summary divider approach.
8 years ago
Kaushal Modi
2bc4448841
Use "summary" Org Special Block instead of the "---" string
8 years ago
Kaushal Modi
ce8985b711
Test multi-paragraph summaries
8 years ago
Kaushal Modi
2b13d18e16
Add support for <details> disclosure widget
8 years ago
Kaushal Modi
3a9a676e17
Add a test case for paragraphs in lists
8 years ago
Kaushal Modi
4fbcb88143
Make the nested lists test more interesting
8 years ago
Kaushal Modi
422a80ce94
Add test for an ordered list following an ordered list
8 years ago
Kaushal Modi
17560ce15b
Add test for "replace double-underscores with space in Org TODO kwd"
...
Feature was added in
https://github.com/kaushalmodi/ox-hugo/commit/7691f0453b .
8 years ago
Kaushal Modi
f87c82a0d5
Update tests
8 years ago
Kaushal Modi
c2a636c2c8
Add headless bundle source link in the headless bundle test
8 years ago
Kaushal Modi
5c15470e61
Add test for code blocks in list using highlight shortcode
...
- https://github.com/kaushalmodi/ox-hugo/issues/161
- https://github.com/gohugoio/hugo/issues/4717
8 years ago
Kaushal Modi
58a4aef012
Add an example showing how to wrap Org headings in HTML tags
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/160
8 years ago
Kaushal Modi
5accde7f69
Fix typo in test
...
"file:https:" is not valid Org link! It has to be either "file:" or
"https:".
Minor update to test site theme.
8 years ago
Kaushal Modi
dff9b47584
Replace external domain image links with local #test site
...
Fix the CSP blocks
8 years ago
Kaushal Modi
f0dd0e2cbe
Support image copying for the homepage branch bundle case
...
This is the case when both `HUGO_SECTION` and `HUGO_BUNDLE` are `/`.
Fixes https://github.com/kaushalmodi/ox-hugo/issues/155 .
8 years ago
Kaushal Modi
615e2d5d85
Add forced line break examples to multi-line descriptions
8 years ago
Kaushal Modi
7390d220ea
Fix typo in previous test update
...
Also update the test site theme again.
8 years ago
Kaushal Modi
b90d8254c9
Update "#+begin_export html" test
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/154
Also update the doc and test site themes.
8 years ago
Kaushal Modi
0dcd2e76a7
Add tags to summary splitter test
8 years ago
Kaushal Modi
428afda667
Escape backslashes in front-matter
...
- Handle single-line and multi-line front-matter values for both TOML
and YAML.
8 years ago
Kaushal Modi
f49af5a420
Add monospace markup to description special block tests
8 years ago
Kaushal Modi
a806ce53d2
Add mathjax tag and description fm to equation tests
8 years ago
Kaushal Modi
593082988c
Fix the case where a fm key value is an elisp symbol
...
Example:
:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :random '((foo . bar))
8 years ago
Kaushal Modi
c5f834a447
Fix version str like "6.17.00" being incorrectly detected as floats
...
Also update the test site theme
8 years ago
Kaushal Modi
8d2ccf4ffd
Update a test case for a Blackfriday bug
...
https://github.com/russross/blackfriday/issues/239
8 years ago
Kaushal Modi
2a762a453a
HTML validation and consistency edits: Ending HTML tags in spcl blks
...
Now, the ending </tag> or </div> inserted as part of special block
exports will have an empty newline before that closing tag.
8 years ago
Kaushal Modi
21a479f5ad
Support mailto: in links
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/149 .
8 years ago
Kaushal Modi
316e702c42
Add a test case for Page Bundle export using file-based flow
8 years ago
Kaushal Modi
edf9c71fa3
Support Org center block
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/148 .
8 years ago
Kaushal Modi
480aa31fe1
Now "\\" at end of line forces a line break
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/147 .
8 years ago
Kaushal Modi
c48f0d513e
Update Headless Bundle test; also update test site theme
8 years ago
Kaushal Modi
1fdc84ea3b
Create index.json in the "search" layout # doc, test sites
...
With this, there is no need to tweak Outputs in site config.
8 years ago
Kaushal Modi
73b84fccfd
Add Search to test site
8 years ago
Kaushal Modi
861ad8a2c0
Do not use spaces in HTML id elements # HTML validity
...
Also update bare_min theme
8 years ago
Kaushal Modi
cc192426c7
Revert "Add blank line before the closing div tags; HTML5 validity"
...
This reverts commit 654dba0838 .
That commit wasn't the cleanest way to make the HTML valid. Actually
the HTML will never be valid because of the div hack.. I guess we just
live with it till Hugo/Blackfriday adds support for wrapping Markdown
elements in div tags.
8 years ago
Kaushal Modi
654dba0838
Add blank line before the closing div tags; HTML5 validity
...
Also update Special Blocks test with more valid HTML5 semantic element
examples.
8 years ago
Kaushal Modi
01662ab78a
Support setting taxonomy weights
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/141
Regular page weight setting is same as before:
Manual:
#+hugo_weight: 100
Auto:
#+hugo_weight: auto
Taxonomy weight setting:
Manual:
#+hugo_weight: :tags 100 :categories 100 :series 100
Auto:
#+hugo_weight: :tags auto :categories auto :series auto
Regular page weight and Taxonomy weights together:
#+hugo_weight: 50 :tags 100 :categories 100 :series 100
or if *not* specifying the page weight in the very beginning, use the
:page keyword:
#+hugo_weight: :tags 100 :categories 100 :page 50 :series 100
8 years ago