Kaushal Modi
75b849e956
Revert "Respect org-src-lang modes"
...
This reverts commit 2319914d63 .
Reverting this for the time being as it's failing the tests.
/cc @ahendriksen
6 years ago
Allard Hendriksen
2319914d63
Respect org-src-lang modes
...
This change makes sure that source blocks such as a jupyter-python
source block are syntax highlighted as a python source block.
6 years ago
Kaushal Modi
9825a5e698
If a link has spaces in it, wrap it in angle brackets
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/376
6 years ago
Kaushal Modi
94aec3f15e
Make :EXPORT_LANGUAGE: inheritable
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/366
6 years ago
Kaushal Modi
2ca3e97a78
Throw error on not seeing HUGO_BASE_DIR when running `C-c C-e H t` too
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/333
6 years ago
Kaushal Modi
8f36181977
Fix the alignment of options in org-export (C-c C-e) menu
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/357 .
6 years ago
Kaushal Modi
a6175c92e4
Minor comment movement
6 years ago
Kaushal Modi
7800cbc59c
Ensure that the title front-matter value is always double-quoted
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/350 .
6 years ago
Kaushal Modi
b6f4142de2
Add <!--list-separator--> before headings that converted to li items
...
This is to cover the corner case where the previous section could be
ending in a plain list, and we want the current
heading-turned-list-item to merge that that list.
This is possible is the current heading level is 6 or more, or if the
`h' Export Option is set to a lower value by the user.
Related: https://github.com/kaushalmodi/ox-hugo/issues/344
6 years ago
Kaushal Modi
27a4952bd2
Do not add extra spaces after hyphens in headings converted to lists
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/344 .
Ref: https://github.com/gohugoio/hugo/issues/7142
6 years ago
Kaushal Modi
9474bd207a
Fix for the move of `org-get-outline-path' to org-refile in Org 9.4+
...
Ref:
- https://lists.gnu.org/r/emacs-orgmode/2020-02/msg00931.html
6 years ago
Kaushal Modi
af85600802
Add workaround for regression in org-babel--string-to-number in Org maint
...
Ref:
- https://lists.gnu.org/r/emacs-orgmode/2020-02/msg00931.html
- 6b2a7cb20b
6 years ago
Kaushal Modi
4d3890dfaf
Do not insert spaces when unwrapping footnote text for CJK langs
6 years ago
Kaushal Modi
c60a839821
Add helper function `org-hugo--lang-cjk-p'
6 years ago
Kaushal Modi
0fafc2a01e
Unwrap Japanese characters without inserting space as well
...
Ref: https://github.com/kaushalmodi/ox-hugo/issues/320
6 years ago
Kaushal Modi
4994463318
Support Radio Targets
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/313 .
6 years ago
Kaushal Modi
4badf13596
Use the correct function to unhex the URL string
6 years ago
Kaushal Modi
23c061c7b3
Enable url encoding of links
...
Blackfriday auto-encoded spaces in Markdown links just fine, but
Goldmark/Commonmark does not do that.
6 years ago
Kaushal Modi
e42a824c32
Support cases where Chinese locale is set as zh_CH, zh_HK, etc.
...
(continuation of the previous commit)
6 years ago
Kaushal Modi
782741f5b1
Do auto-unwrapping of multi-byte chars only for Chinese locale
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/300 .
6 years ago
Kaushal Modi
fa67896140
Minor refactoring
...
Prep for HTML_CONTAINER support.
Ref: https://github.com/kaushalmodi/ox-hugo/issues/271
7 years ago
Folkert van der Beek
8e289e83ef
Copy resources to the bundle directory
7 years ago
Kaushal Modi
a8e0c6e1ce
Improve/correct the export menu function descriptions
7 years ago
Kaushal Modi
470a708152
Minor tweak to commit 6ab67efc56
7 years ago
Kaushal Modi
7470d28123
Remove the unnecessary uses of org-hugo--sanitize-title
...
Replace it with org-hugo--get-sanitized-title.
7 years ago
Kaushal Modi
6ab67efc56
Retain markup in titles when deriving them for internal/x-post links
7 years ago
Kaushal Modi
cb32ad1b87
Do not sanitize title when deriving anchor strings
7 years ago
Kaushal Modi
99a26c9126
For cross-post links without desc, autoset it to linked head titles
7 years ago
Kaushal Modi
01b81293bd
Make org-hugo--sanitize-title accept an optional title arg
...
Use it in org-hugo--get-anchor.
7 years ago
Kaushal Modi
22efa92e1c
Add and use an internal helper function org-hugo--get-anchor
7 years ago
Kaushal Modi
769ce591a0
Nitpicks
7 years ago
Kaushal Modi
847d7c3d59
Give a unique name to the pre-processed buffer
...
Useful when needed to switch to one during debug
7 years ago
Kaushal Modi
7991257919
Do not do the buffer pre-processing unless needed
...
Now the pre-processing does not happen in these cases:
- When the point is not in a valid Hugo post subtree
- When the point is in one.. but:
- it is commented out
- or, is in an exclude tag
- etc.
Basically, do the pre-processing only when the subtree is
getting *actually* exported.
7 years ago
Kaushal Modi
0aaf777f31
Refactor: print-subtree-count -> all-subtrees
7 years ago
Kaushal Modi
4e7be4f7b9
Remove unintended newlines from few messages
7 years ago
Kaushal Modi
00fbbd6191
Minor refactoring
7 years ago
Kaushal Modi
8c73de054f
Fix the regression introduced in c29e98b1ee
...
- c29e98b1ee
Fixes https://github.com/kaushalmodi/ox-hugo/issues/283 .
7 years ago
Kaushal Modi
325c655135
Refactoring for consistency
7 years ago
Folkert van der Beek
ed4f18066c
Convert internal links for subtree exports
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/30 .
- Locate correct subtree to be exported
- Made CUSTOM_ID references unique
- Updated .md files with unique CUSTOM_ID references
- Workaround to prevent exporting of empty special blocks
- Mark preprocessed buffer as unmodified
- Support crosspost custom-id, id and fuzzy link types
- Update test site with cross-post links
- Require 'org-id in setup-ox-hugo.el to handle ID links
- Add instruction to handle ID links to test site
- Kill the preprocessed buffer after exporting
- Fix check for non-nil destination-filename
- Support preprocessing of cross-post "fuzzy" and "id" type links
- Support section paths in the preprocessing buffer
- Retrieve #+HUGO_SECTION keyword from in-buffer settings
7 years ago
Kaushal Modi
872c641282
Fix checkdoc error; move around functions
7 years ago
Kaushal Modi
cc6aaa5ad3
Use separate let and if instead of if-let
...
To make all emacs versions happy.
7 years ago
Kaushal Modi
83b213e064
More code cleanup
...
- Remove redundant code around org-hugo--subtree-count
- Make the org-hugo--export-file-to-md and
org-hugo--export-subtree-to-md interal functions.. user should only
need to call org-hugo-export-wim-to-md.
7 years ago
Kaushal Modi
29d818fd2e
Fix the broken file-based/subtree-based export detection in -wim fn
...
- Now C-c C-e H H works once again in:
- a file without any valid Hugo post subtree
- a file with a valid Hugo post subtree when the point is inside one
- C-c C-e H A also now once does file-based export if the file does
not have a valid Hugo post subtree.
7 years ago
Kaushal Modi
daadf095e6
Revert "Revert "Code cleanup""
...
This reverts commit 182987ae6a .
7 years ago
Kaushal Modi
2b428896f3
Revert "Revert "Just use the input f-or-b-name""
...
This reverts commit d6e22bf3c9 .
7 years ago
Kaushal Modi
bf53cae37f
Revert "Revert "Pass checkdoc""
...
This reverts commit acd343b1f3 .
7 years ago
Kaushal Modi
70b913f209
Revert "Revert "Fix all compilation warnings""
...
This reverts commit 69a3b7f29a .
7 years ago
Kaushal Modi
fddab01908
Revert "Revert "Split org-hugo-export-wim-to-md to multiple functions""
...
This reverts commit 8e0af918bf .
7 years ago
Kaushal Modi
8e0af918bf
Revert "Split org-hugo-export-wim-to-md to multiple functions"
...
This reverts commit 7942e14554 .
7 years ago
Kaushal Modi
69a3b7f29a
Revert "Fix all compilation warnings"
...
This reverts commit e2c73850bd .
7 years ago