mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
FIX adds alt property to preformated text in HTML
This commit is contained in:
parent
8cf174ecb3
commit
a9fb49802a
@ -314,7 +314,8 @@ class GemtextTranslate_html {
|
||||
case "```":
|
||||
$text = implode("\n", $node["texts"]);
|
||||
self::htmlPrepare($text);
|
||||
$output .= "<pre>\n$text\n</pre>\n";
|
||||
$alt = $node["alt"];
|
||||
$output .= "<pre alt='$alt'>\n$text\n</pre>\n";
|
||||
break;
|
||||
case ">":
|
||||
$output .= "<blockquote>\n";
|
||||
|
@ -1,13 +1,13 @@
|
||||
<pre>
|
||||
<pre alt='Text to not display but keep in memory'>
|
||||
Bellow here, an empty line
|
||||
|
||||
</pre>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt='X'>
|
||||
|
||||
</pre>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt=''>
|
||||
No
|
||||
alt
|
||||
text
|
||||
|
@ -1,13 +1,13 @@
|
||||
<pre>
|
||||
<pre alt='Text to not display but keep in memory'>
|
||||
Bellow here, an empty line
|
||||
|
||||
</pre>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt='X'>
|
||||
|
||||
</pre>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt=''>
|
||||
No
|
||||
alt
|
||||
text
|
||||
|
@ -223,7 +223,7 @@
|
||||
<p> </p>
|
||||
<p>Lines beginning with the two characters "=>" are link lines, which have the following syntax:</p>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt=''>
|
||||
=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]
|
||||
</pre>
|
||||
<p> </p>
|
||||
@ -237,7 +237,7 @@
|
||||
<p> </p>
|
||||
<p>All the following examples are valid link lines:</p>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt=''>
|
||||
=> gemini://example.org/
|
||||
=> gemini://example.org/ An example link
|
||||
=> gemini://example.org/foo Another example link at the same host
|
||||
|
@ -223,7 +223,7 @@
|
||||
<p> </p>
|
||||
<p>Lines beginning with the two characters "=>" are link lines, which have the following syntax:</p>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt=''>
|
||||
=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]
|
||||
</pre>
|
||||
<p> </p>
|
||||
@ -237,7 +237,7 @@
|
||||
<p> </p>
|
||||
<p>All the following examples are valid link lines:</p>
|
||||
<p> </p>
|
||||
<pre>
|
||||
<pre alt=''>
|
||||
=> gemini://example.org/
|
||||
=> gemini://example.org/ An example link
|
||||
=> gemini://example.org/foo Another example link at the same host
|
||||
|
Loading…
x
Reference in New Issue
Block a user