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 "```":
|
case "```":
|
||||||
$text = implode("\n", $node["texts"]);
|
$text = implode("\n", $node["texts"]);
|
||||||
self::htmlPrepare($text);
|
self::htmlPrepare($text);
|
||||||
$output .= "<pre>\n$text\n</pre>\n";
|
$alt = $node["alt"];
|
||||||
|
$output .= "<pre alt='$alt'>\n$text\n</pre>\n";
|
||||||
break;
|
break;
|
||||||
case ">":
|
case ">":
|
||||||
$output .= "<blockquote>\n";
|
$output .= "<blockquote>\n";
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<pre>
|
<pre alt='Text to not display but keep in memory'>
|
||||||
Bellow here, an empty line
|
Bellow here, an empty line
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt='X'>
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt=''>
|
||||||
No
|
No
|
||||||
alt
|
alt
|
||||||
text
|
text
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<pre>
|
<pre alt='Text to not display but keep in memory'>
|
||||||
Bellow here, an empty line
|
Bellow here, an empty line
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt='X'>
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt=''>
|
||||||
No
|
No
|
||||||
alt
|
alt
|
||||||
text
|
text
|
||||||
|
@ -223,7 +223,7 @@
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
<p>Lines beginning with the two characters "=>" are link lines, which have the following syntax:</p>
|
<p>Lines beginning with the two characters "=>" are link lines, which have the following syntax:</p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt=''>
|
||||||
=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]
|
=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]
|
||||||
</pre>
|
</pre>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
@ -237,7 +237,7 @@
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
<p>All the following examples are valid link lines:</p>
|
<p>All the following examples are valid link lines:</p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt=''>
|
||||||
=> gemini://example.org/
|
=> gemini://example.org/
|
||||||
=> gemini://example.org/ An example link
|
=> gemini://example.org/ An example link
|
||||||
=> gemini://example.org/foo Another example link at the same host
|
=> gemini://example.org/foo Another example link at the same host
|
||||||
|
@ -223,7 +223,7 @@
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
<p>Lines beginning with the two characters "=>" are link lines, which have the following syntax:</p>
|
<p>Lines beginning with the two characters "=>" are link lines, which have the following syntax:</p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt=''>
|
||||||
=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]
|
=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]
|
||||||
</pre>
|
</pre>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
@ -237,7 +237,7 @@
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
<p>All the following examples are valid link lines:</p>
|
<p>All the following examples are valid link lines:</p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<pre>
|
<pre alt=''>
|
||||||
=> gemini://example.org/
|
=> gemini://example.org/
|
||||||
=> gemini://example.org/ An example link
|
=> gemini://example.org/ An example link
|
||||||
=> gemini://example.org/foo Another example link at the same host
|
=> gemini://example.org/foo Another example link at the same host
|
||||||
|
Loading…
x
Reference in New Issue
Block a user