Browse Source

Fix LaTeX zones protection when parsing to html

master
arnaucube 2 years ago
parent
commit
0f57007879
5 changed files with 7 additions and 2 deletions
  1. +5
    -0
      bin/README.md
  2. BIN
      bin/blogo-amd64-darwin
  3. BIN
      bin/blogo-amd64-linux
  4. BIN
      bin/blogo-amd64.exe
  5. +2
    -2
      main.go

+ 5
- 0
bin/README.md

@ -0,0 +1,5 @@
It's recommended to compile by yourself the binaries:
```
# in the root directory of this repository:
go build
```

BIN
bin/blogo-amd64-darwin


BIN
bin/blogo-amd64-linux


BIN
bin/blogo-amd64.exe


+ 2
- 2
main.go

@ -12,7 +12,7 @@ import (
"github.com/gomarkdown/markdown/parser" "github.com/gomarkdown/markdown/parser"
) )
const version = "v0_20220513"
const version = "v0_20220514"
const directory = "blogo-input" const directory = "blogo-input"
const defaultOutputDir = "public" const defaultOutputDir = "public"
@ -49,7 +49,7 @@ func generateHTML() {
mdExtensions := parser.NoIntraEmphasis | parser.Tables | parser.FencedCode | mdExtensions := parser.NoIntraEmphasis | parser.Tables | parser.FencedCode |
parser.Autolink | parser.Strikethrough | parser.SpaceHeadings | parser.HeadingIDs | parser.Autolink | parser.Strikethrough | parser.SpaceHeadings | parser.HeadingIDs |
parser.BackslashLineBreak | parser.DefinitionLists
parser.BackslashLineBreak | parser.DefinitionLists | parser.MathJax
// generate index page // generate index page
indexTemplate := readFile(directory + "/" + config.IndexTemplate) indexTemplate := readFile(directory + "/" + config.IndexTemplate)

Loading…
Cancel
Save