Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add org-mode support for internal links (incl. update documentation) #322

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Jan 10, 2020

  1. Add support for internal links

    The internal link in ox-html is a little fuzzy. For example, [[./test.org][test]] will be generated as <a href="file:///./test.jpg">"test" because the path is considered as an absolute file path.
    
    In order to correctly generate internal link urls, you may write [[int-url:./test][test], JUST THE FILENAME WITHOUT THE .org EXTENSION PART and then it should be generated as <a href="./test/index.html">"test".
    
    This is just a slightly adapted copy if the img-url solution for image url's
    dalanicolai authored Jan 10, 2020
    Configuration menu
    Copy the full SHA
    dc2d3f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    714e2bc View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2020

  1. improve internal link export function

    1. Change link prefix from 'int-url' to 'internal'. 2. Replace 'path' with a substring method that removes the .org extension in from the original org source file syntax to make the 'internal link' export function work similar as the 'img-url' export function, and also to keep the differences between a nikola org source file minimal with the original org source file.
    dalanicolai authored Jan 12, 2020
    Configuration menu
    Copy the full SHA
    8c7a27e View commit details
    Browse the repository at this point in the history
  2. updates for internal link pull request

    update link prefix from 'int-url' to 'internal'. Remove reuirement to leave out .org extension in link (this is removed by a substring method in the init.el file)
    dalanicolai authored Jan 12, 2020
    Configuration menu
    Copy the full SHA
    140b922 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eacaf30 View commit details
    Browse the repository at this point in the history