* Questions Regarding Exports For 'pre' Tag In HTML Exports
@ 2022-03-19 0:52 Samuel Banya
2022-03-19 1:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-19 5:26 ` Jean Louis
0 siblings, 2 replies; 4+ messages in thread
From: Samuel Banya @ 2022-03-19 0:52 UTC (permalink / raw)
To: Emanuel Berg
Hey there,
I have a question regarding exporting an HTML block to a live website.
I basically am just trying to do some cool ASCII for my site using pre-generated ASCII that I've copied and pasted into a source block.
The problem is that the source block that is produced always has default formatting, which looks great if you run a code blog or something.
However in my scenario, I actually just want the text to appear without the block itself, or the upper right section that designates what type of 'pre' source block it became.
Is this possible?
I tried to overwrite it with CSS styling rules but that didn't seem to work either.
Here's what I have in the block:
#+begin_src html
_ _ _
/\/\ _ _ ___(_)_ __ ___ __ _| |_(_) ___ __ ___ _ ____
/ \| | | / __| | '_ ` _ \ / _` | __| |/ __| \ \/ | | | |_ /
/ /\/\ | |_| \__ | | | | | | | (_| | |_| | (__ _ > <| |_| |/ /
\/ \/\__,_|___|_|_| |_| |_|\__,_|\__|_|\___(_/_/\_\\__, /___|
|___/
#+end_src
End result is on my site:
https://musimatic.xyz/
Thanks,
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Questions Regarding Exports For 'pre' Tag In HTML Exports
2022-03-19 0:52 Questions Regarding Exports For 'pre' Tag In HTML Exports Samuel Banya
@ 2022-03-19 1:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-19 22:49 ` Samuel Banya
2022-03-19 5:26 ` Jean Louis
1 sibling, 1 reply; 4+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-03-19 1:06 UTC (permalink / raw)
To: help-gnu-emacs
Samuel Banya wrote:
> I have a question regarding exporting an HTML block to
> a live website.
>
> I basically am just trying to do some cool ASCII for my site
> using pre-generated ASCII that I've copied and pasted into
> a source block.
For ASCII: <pre>
For code: <source>
> Here's what I have in the block:
>
> #+begin_src html
> _ _ _
> /\/\ _ _ ___(_)_ __ ___ __ _| |_(_) ___ __ ___ _ ____
> / \| | | / __| | '_ ` _ \ / _` | __| |/ __| \ \/ | | | |_ /
> / /\/\ | |_| \__ | | | | | | | (_| | |_| | (__ _ > <| |_| |/ /
> \/ \/\__,_|___|_|_| |_| |_|\__,_|\__|_|\___(_/_/\_\\__, /___|
> |___/
> #+end_src
Why? That isn't HTML even ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Questions Regarding Exports For 'pre' Tag In HTML Exports
2022-03-19 1:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-03-19 22:49 ` Samuel Banya
0 siblings, 0 replies; 4+ messages in thread
From: Samuel Banya @ 2022-03-19 22:49 UTC (permalink / raw)
To: Emanuel Berg
Hey,
Just as an update on this, the only thing that worked was to wrap it in a source block with 'pre' formatting, and to nuke the default formatting:
#+OPTIONS: html-style:nil
#+begin_src pre
__ ___ _ __ _
/ |/ /_ _______(_)___ ___ ____ _/ /_(_)____ _ ____ ______
/ /|_/ / / / / ___/ / __ `__ \/ __ `/ __/ / ___/ | |/_/ / / /_ /
/ / / / /_/ (__ ) / / / / / / /_/ / /_/ / /___ _> </ /_/ / / /_
/_/ /_/\__,_/____/_/_/ /_/ /_/\__,_/\__/_/\___(_)_/|_|\__, / /___/
/____/
#+end_src
Thanks again!
On Fri, Mar 18, 2022, at 9:06 PM, Emanuel Berg via Users list for the GNU Emacs text editor wrote:
> Samuel Banya wrote:
>
> > I have a question regarding exporting an HTML block to
> > a live website.
> >
> > I basically am just trying to do some cool ASCII for my site
> > using pre-generated ASCII that I've copied and pasted into
> > a source block.
>
> For ASCII: <pre>
>
> For code: <source>
>
> > Here's what I have in the block:
> >
> > #+begin_src html
> > _ _ _
> > /\/\ _ _ ___(_)_ __ ___ __ _| |_(_) ___ __ ___ _ ____
> > / \| | | / __| | '_ ` _ \ / _` | __| |/ __| \ \/ | | | |_ /
> > / /\/\ | |_| \__ | | | | | | | (_| | |_| | (__ _ > <| |_| |/ /
> > \/ \/\__,_|___|_|_| |_| |_|\__,_|\__|_|\___(_/_/\_\\__, /___|
> > |___/
> > #+end_src
>
> Why? That isn't HTML even ...
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Questions Regarding Exports For 'pre' Tag In HTML Exports
2022-03-19 0:52 Questions Regarding Exports For 'pre' Tag In HTML Exports Samuel Banya
2022-03-19 1:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-03-19 5:26 ` Jean Louis
1 sibling, 0 replies; 4+ messages in thread
From: Jean Louis @ 2022-03-19 5:26 UTC (permalink / raw)
To: Samuel Banya; +Cc: help-gnu-emacs
* Samuel Banya <sbanya@fastmail.com> [2022-03-19 03:54]:
> Here's what I have in the block:
> #+begin_src html
> _ _ _
> /\/\ _ _ ___(_)_ __ ___ __ _| |_(_) ___ __ ___ _ ____
> / \| | | / __| | '_ ` _ \ / _` | __| |/ __| \ \/ | | | |_ /
> / /\/\ | |_| \__ | | | | | | | (_| | |_| | (__ _ > <| |_| |/ /
> \/ \/\__,_|___|_|_| |_| |_|\__,_|\__|_|\___(_/_/\_\\__, /___|
> |___/
> #+end_src
It should be this way:
#+begin_src html
<pre>
_ _ _
/\/\ _ _ ___(_)_ __ ___ __ _| |_(_) ___ __ ___ _ ____
/ \| | | / __| | '_ ` _ \ / _` | __| |/ __| \ \/ | | | |_ /
/ /\/\ | |_| \__ | | | | | | | (_| | |_| | (__ _ > <| |_| |/ /
\/ \/\__,_|___|_|_| |_| |_|\__,_|\__|_|\___(_/_/\_\\__, /___|
|___/
</pre>
#+end_src
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-19 22:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-19 0:52 Questions Regarding Exports For 'pre' Tag In HTML Exports Samuel Banya
2022-03-19 1:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-19 22:49 ` Samuel Banya
2022-03-19 5:26 ` Jean Louis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).