Permalink
Browse files

added support for internal links; modification notice per license

  • Loading branch information...
1 parent a8e5b81 commit 6313262aaa811872cf5c869d026bd8b570931cfa @beadsland beadsland committed Apr 29, 2012
Showing with 12 additions and 3 deletions.
  1. +3 −1 .gitignore
  2. +9 −2 src/edown_doclet.erl
View
@@ -1,6 +1,8 @@
+.project
+.settings/
.eunit/
ebin/
*~
*/*~
#*#
-*/#*#
+*/#*#
View
@@ -16,7 +16,9 @@
%% @author Ulf Wiger <ulf.wiger@erlang-solutions.com>
%% @copyright 2010 Erlang Solutions Ltd
%% @end
-%% =====================================================================
+%% =============================================================================
+%% Modified 2012 by Beads Land-Trujillo: get_git_branch/0, redirect_href/3
+%% =============================================================================
%% @doc EDoc Doclet module for producing Markdown.
@@ -201,7 +203,12 @@ redirect_href(Attrs, Branch, BaseHRef) ->
{match, _} ->
false;
nomatch ->
- HRef1 = do_redirect(Href, AppBlob),
+ case Href of
+ [$# | _] ->
+ HRef1 = do_redirect(?INDEX_FILE ++ Href, AppBlob);
+ _Else ->
+ HRef1 = do_redirect(Href, AppBlob)
+ end,
{true,
lists:keyreplace(
href, #xmlAttribute.name, Attrs,

0 comments on commit 6313262

Please sign in to comment.