Skip to content

Commit

Permalink
Merge pull request #47 from theohbrothers/fix/fix-broken-attachment-r…
Browse files Browse the repository at this point in the history
…elative-paths

Fix: Fix broken attachment relative paths
  • Loading branch information
leojonathanoh committed Jul 30, 2021
2 parents 76a2723 + 080f65f commit 641bdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConvertOneNote2MarkDown-v2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Function ProcessSections ($group, $FilePath) {
# Change MD file Object Name References
try {
$pageinsertedfile2 = $pageinsertedfile.InsertedFile.preferredName.Replace("$", "\$").Replace("^", "\^").Replace("'", "\'")
((Get-Content -path "$($fullfilepathwithoutextension).md" -Raw).Replace("$($pageinsertedfile2)", "[$($destfilename)]($($mediaPath2)/media/$($destfilename))")) | Set-Content -Path "$($fullfilepathwithoutextension).md"
((Get-Content -path "$($fullfilepathwithoutextension).md" -Raw).Replace("$($pageinsertedfile2)", "[$($destfilename)]($($mediaPath)/media/$($destfilename))")) | Set-Content -Path "$($fullfilepathwithoutextension).md"

}
catch {
Expand Down

0 comments on commit 641bdd6

Please sign in to comment.