fixed // in pandoc builds

This commit is contained in:
gurkenhabicht 2026-10-23 15:53:40 +02:00
parent ac54047097
commit c31bf36cf1
3 changed files with 16 additions and 12 deletions

View File

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
pandoc -s --mathml -i -t revealjs sql_injection.md -V theme=simple -o presentation.html --css=./robot-lung.css # pandoc -s --mathml -i -t revealjs sql_injection.md -V theme=simple -o presentation.html --css=./robot-lung.css
pandoc -s --mathml -i -t revealjs sql_injection.md -V theme=simple \
-V revealjs-url=https://unpkg.com/reveal.js@4 \
-o presentation.html --css=./robot-lung.css
sed -i 's|<body>|<body>\n<div class="line top"></div>\n<div class="line bottom"></div>\n<div class="line left"></div>\n<div class="line right"></div>\n|' presentation.html sed -i 's|<body>|<body>\n<div class="line top"></div>\n<div class="line bottom"></div>\n<div class="line left"></div>\n<div class="line right"></div>\n|' presentation.html

View File

@ -8,8 +8,8 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/reset.css"> <link rel="stylesheet" href="https://unpkg.com/reveal.js@4/dist/reset.css">
<link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/reveal.css"> <link rel="stylesheet" href="https://unpkg.com/reveal.js@4/dist/reveal.css">
<style> <style>
.reveal .sourceCode { /* see #7635 */ .reveal .sourceCode { /* see #7635 */
overflow: visible; overflow: visible;
@ -29,8 +29,9 @@
vertical-align: middle; vertical-align: middle;
} }
/* CSS for syntax highlighting */ /* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; } pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; } pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; } .sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; } code.sourceCode > span { color: inherit; text-decoration: inherit; }
@ -41,7 +42,7 @@
} }
@media print { @media print {
pre > code.sourceCode { white-space: pre-wrap; } pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; } pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
} }
pre.numberSource code pre.numberSource code
{ counter-reset: source-line 0; } { counter-reset: source-line 0; }
@ -93,7 +94,7 @@
code span.vs { color: #4070a0; } /* VerbatimString */ code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style> </style>
<link rel="stylesheet" href="https://unpkg.com/reveal.js@^4//dist/theme/simple.css" id="theme"> <link rel="stylesheet" href="https://unpkg.com/reveal.js@4/dist/theme/simple.css" id="theme">
<link rel="stylesheet" href="./robot-lung.css"/> <link rel="stylesheet" href="./robot-lung.css"/>
</head> </head>
<body> <body>
@ -228,12 +229,12 @@ Room</a>.</p></li>
</div> </div>
</div> </div>
<script src="https://unpkg.com/reveal.js@^4//dist/reveal.js"></script> <script src="https://unpkg.com/reveal.js@4/dist/reveal.js"></script>
<!-- reveal.js plugins --> <!-- reveal.js plugins -->
<script src="https://unpkg.com/reveal.js@^4//plugin/notes/notes.js"></script> <script src="https://unpkg.com/reveal.js@4/plugin/notes/notes.js"></script>
<script src="https://unpkg.com/reveal.js@^4//plugin/search/search.js"></script> <script src="https://unpkg.com/reveal.js@4/plugin/search/search.js"></script>
<script src="https://unpkg.com/reveal.js@^4//plugin/zoom/zoom.js"></script> <script src="https://unpkg.com/reveal.js@4/plugin/zoom/zoom.js"></script>
<script> <script>

View File

@ -1,5 +1,5 @@
% Introduction to SQL Injection % Introduction to SQL Injection
% Stefan Friese % Stefan Etringer
% 11 April, 2024 % 11 April, 2024
--- ---
@ -72,7 +72,7 @@ sql_query =
```SQL ```SQL
SELECT * FROM users WHERE username = '' or '1' = '1' -- - AND password '%s' SELECT * FROM users WHERE username = '' or '1' = '1' -- - AND password '%s'
``` ```
You can see thath the value of username has been closed by the `'` character. You can see thath the value of username has been closed by the `'` character.
*Numbers as strings is an SQLite specific thing* *Numbers as strings is an SQLite specific thing*
--- ---