Skip to content

Commit

Permalink
update README conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Feb 6, 2024
1 parent 503ca4b commit 4c5266b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function generate_indexmd_from_readmemd()
path_index = "docs/src/index.md"

# open README.md
f = open(path_readme)
text_readme = read(f,String)
close(f)
text_readme = read(path_readme, String)

# generate text for index.md
text_index = replace(text_readme,"![](docs/src/img" => "![](img")
text_index = text_readme
text_index = replace(text_index, "![](docs/src/img" => "![](img")
text_index = replace(text_index, r"\$\$((.|\n)*?)\$\$" => s"```math\1```")

# save index.md
open(path_index, "w") do f
Expand Down

0 comments on commit 4c5266b

Please sign in to comment.