Skip to content

Instantly share code, notes, and snippets.

@hadisfr
Created October 6, 2020 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadisfr/4e72897293f77b10d16f1be3c79443ec to your computer and use it in GitHub Desktop.
Save hadisfr/4e72897293f77b10d16f1be3c79443ec to your computer and use it in GitHub Desktop.
pandoc persian tex html convert
pandoc report.md -o report.html --bibliography=biblio.bib --filter pandoc-crossref --filter pandoc-citeproc --csl ./acm.csl --resource-path=./img --self-contained
(?s)\!\[([^\]]*)?\[\\\[.*?\\\]\]\{(\#[^ ]*?)\s.*?\}\]\((.*?)\)
![\1](\3){\2}
(?s)\[\\\[[^\}]*?\\\]\]\(\#(.*?)\)\{.*?\}
[@\1]
(?s)\!\[([^\]]*?)\]\(([^\)]*?)\)\n
\!\[\1\]\(\2\)\{\#fig:\2\}\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment