fix $_SMALL ... _$

This commit is contained in:
relt-1
2023-09-26 12:01:28 +02:00
parent 1666efeb4a
commit dc28e5c841
5 changed files with 7 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ def ConvertToHtml(fpath):
rawmarkdown = f.read().replace("\r\n","\n")
smalls = re.findall(r"^\$\_SMALL\s[\s\S]+\s\_\$$",rawmarkdown,re.MULTILINE)
for small in smalls:
rawmarkdown = rawmarkdown.replace(small, "<small style=\"position:relative; top:8px;\">"+small[2:-2]+"</small>")
rawmarkdown = rawmarkdown.replace(small, "<small style=\"position:relative; top:8px;\">"+small[8:-3]+"</small>")
frames = re.findall(r"^\$_FRAME\s[\S\s]+\s_\$$",rawmarkdown,re.MULTILINE)
for frame in frames:
framed_string = frame[8:-3]

View File

@@ -400,7 +400,7 @@ th, td
<p>Let's say that you have made a file called "MyLib.lua" inside a mod called "MyMod". These are the contents of it:</p>
<p>$_MyMod/MyLib.lua_$</p>
<p><small style="position:relative; top:8px;">MyMod/MyLib.lua</small></p>
<div class="codehilite">
<pre><span></span><code><span class="kr">function</span> <span class="nf">add</span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="n">b</span><span class="p">)</span>

View File

@@ -400,7 +400,7 @@ th, td
<p>Let's say that you have a library called "MyLib.nut" inside a mod called "MyMod". This is what it contains:</p>
<p>$_MyMod/MyLib.nut_$</p>
<p><small style="position:relative; top:8px;">MyMod/MyLib.nut _$</p>
<pre><code>class AdditionClass
{
@@ -415,7 +415,7 @@ Addition &lt;- AdditionClass() -- Exports can only use global variables!
<p>Now to export the <code>Addition</code> object, pass them to the <code>export()</code> function at the end of the file.</p>
<p>$_MyMod/MyLib.nut_$</p>
<p>$_SMALL MyMod/MyLib.nut</small></p>
<pre><code>export(Addition);
</code></pre>

View File

@@ -5,7 +5,7 @@ Now that you have exported some variables, something's gotta import them! As alw
Let's say that you have made a file called "MyLib.lua" inside a mod called "MyMod". These are the contents of it:
$_MyMod/MyLib.lua_$
$_SMALL MyMod/MyLib.lua _$
```lua
function add(a,b)
return a + b

View File

@@ -4,7 +4,7 @@ The main big feature of QScript is the export system. It lets you export classes
Let's say that you have a library called "MyLib.nut" inside a mod called "MyMod". This is what it contains:
$_MyMod/MyLib.nut_$
$_SMALL MyMod/MyLib.nut _$
```
class AdditionClass
{
@@ -19,7 +19,7 @@ Addition <- AdditionClass() -- Exports can only use global variables!
Now to export the `Addition` object, pass them to the `export()` function at the end of the file.
$_MyMod/MyLib.nut_$
$_SMALL MyMod/MyLib.nut _$
```
export(Addition);
```