Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
83f03484
Commit
83f03484
authored
Mar 25, 2019
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HTML] Do not break the table of contents by transorming local links to gitlab links
parent
4883b691
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pandoc_fixer.pl
bin/pandoc_fixer.pl
+2
-2
No files found.
bin/pandoc_fixer.pl
View file @
83f03484
...
@@ -69,8 +69,8 @@ while(defined(my $line=<INPUT>)) {
...
@@ -69,8 +69,8 @@ while(defined(my $line=<INPUT>)) {
$line =~ s|img src="
%|
img
src
=
"http|g;
$line =~ s|img src="
%|
img
src
=
"http|g;
$line =~ s|href="
http
|
href
=
"%|g;
$line =~ s|href="
http
|
href
=
"%|g;
$line =~ s|href="
([
^%
][
^
"]*.tgz)"
|
href
=
"$raw_path_percent/$1"
|
g
;
# ?inline=false
$line =~ s|href="
([
^%
#
][^"]*.tgz)"|href="$raw_path_percent/$1"|g; # ?inline=false
$line
=~
s
|
href
=
"([^%][^"
]
*
)
"|href="
$tree_path
/
$1
"|g; # ?inline=false
$line
=~
s
|
href
=
"([^%
#
][^"
]
*
)
"|href="
$tree_path
/
$1
"|g; # ?inline=false
$line =~ s|href="
%|
href
=
"http|g;
$line =~ s|href="
%|
href
=
"http|g;
# if($line =~ /img src="
([
^%
][
^
"]*)"
/
)
{
# if($line =~ /img src="
([
^%
][
^
"]*)"
/
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment