Added ability to insert custom divs
This commit is contained in:
parent
9d1f5e88b2
commit
5d945ee09c
|
@ -91,6 +91,8 @@
|
|||
(md4tj-begin-tag "p" (list (list "id" "lastupdated")))
|
||||
"Last updated: " (current-time-string)
|
||||
(md4tj-end-tag "p")))
|
||||
((string-match "^@@DIV" line) (md4tj-begin-tag "div" (list (list "class" (nth 1 (split-string line))))))
|
||||
((string-match "^@@ENDDIV" line) (md4tj-end-tag "div"))
|
||||
((and (string-match "^$$.*$$" line) (eq (nth 1 state) 'normal)) ;; LaTeX formula
|
||||
(shell-command (concat "./pnglatex"
|
||||
" -d 300"
|
||||
|
|
|
@ -17,3 +17,7 @@ video {
|
|||
width: 5%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.monospace-text {
|
||||
font-family: monospace;
|
||||
};
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
<head>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="test_css.css">
|
||||
<title>Test webpage</title>
|
||||
|
||||
|
@ -71,6 +73,12 @@ int main() {
|
|||
|
||||
<p><a href="https://crawl.develz.org">Dungeon Crawl Stone Soup</a> - My favorite FOSS roguelike (Yes, I know the greatest roguelike of all time is NetHack, I don't care).</p>
|
||||
<img class="teximg" src="./teximg/05e525335903ae89ce2a72ebe2582879.png" alt="e^{i \pi} + 1 = 0">
|
||||
<p id="lastupdated">Last updated: Wed Jan 4 14:56:23 2023</p>
|
||||
|
||||
<br/>
|
||||
<div class="monospace-text">
|
||||
|
||||
<p>This is a div that has monospace text.</p>
|
||||
</div>
|
||||
<p id="lastupdated">Last updated: Wed Jan 4 15:08:50 2023</p>
|
||||
</body>
|
||||
</html>
|
|
@ -26,4 +26,8 @@ int main() {
|
|||
```
|
||||
[Dungeon Crawl Stone Soup](https://crawl.develz.org) - My favorite FOSS roguelike (Yes, I know the greatest roguelike of all time is NetHack, I don't care).
|
||||
$$e^{i \pi} + 1 = 0$$
|
||||
|
||||
@@DIV monospace-text
|
||||
This is a div that has monospace text.
|
||||
@@ENDDIV
|
||||
@@LASTUPDATED
|
Loading…
Reference in New Issue