-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactors: almost just about code styles, doesn't change any behaviour
- Loading branch information
Showing
10 changed files
with
120 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import Markdown: latex, latexinline | ||
|
||
# Remove comments that can occur inside a line | ||
function latexinline(io, comment::WeaveMarkdown.Comment) | ||
write(io, "") | ||
end | ||
|
||
function latex(io::IO, comment::WeaveMarkdown.Comment) | ||
function latex(io::IO, comment::Comment) | ||
for line in split(comment.text, r"\r\n|\n") | ||
write(io, "% $line\n") | ||
end | ||
end | ||
|
||
latexinline(io, comment::Comment) = write(io, "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.