Skip to content

Commit

Permalink
More backticks, and no consecutive ones
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Jul 25, 2023
1 parent f3241d7 commit ae5b639
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 275 deletions.
3 changes: 2 additions & 1 deletion odata-protocol/temp/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ const clean = old
// TODO: clean up all <span> tags

// clean up "keyword" formatting
.replace(/<span[ \n]style='font-family:\n?"Courier[ \n]New"'>([^<]*)<\/span>/g, "<code>$1</code>")
.replace(/<span[ \n]style='font-family:\n?"Courier[ \n]New"(;\n?color:black;\n?background:white)?'>([^<]*)<\/span>/g, "<code>$2</code>")
.replace(/<span[ \n]+class=Datatype>([^<]*)<\/span>/g, "<code>$1</code>")
.replace(/<span[ \n]+class=Keyword>([^<]*)<\/span>/g, "<code>$1</code>")
.replace(/<span[ \n]+class=VerbatimChar>([^<]*)<\/span>/g, "<code>$1</code>")
.replaceAll("</code><code>","")

// clean up headings
.replace(/<a[ \n]href="#sec[^"]+">((<code>|<\/code>|[^<])*)<\/a><\/h/g, "$1</h")
Expand Down
Loading

0 comments on commit ae5b639

Please sign in to comment.