nfeske / gosh Goto Github PK
View Code? Open in Web Editor NEWTool to convert plain text to LaTeX, HTML, and other formats
License: GNU General Public License v2.0
Tool to convert plain text to LaTeX, HTML, and other formats
License: GNU General Public License v2.0
A couple notes; those might not be bugs per se, but might need to be documented:
EDIT: sorry, that report above is actually wrong -- I was looking at the "anchor" html tag instead of the "img" html tag. The below is accurate though:
when specifying the filename, the extension should not be given as it's handled by GOSH, so it would end up being written twice; e.g. if my GOSH codes refers to image "Pulse-vs-pulse.png" then the produced HTML file will refer to "Pulse-vs-pulse.png.png".
img src="Pulse-vs-pulse.png.png">
I've encountered a problem when publishing an article at genodians.org. The blog post contained a link in the form:
https://0xax.gitbooks.io/linux-insides/content/Concepts/linux-cpu-3.html - linux insides]
which gets translated by gosh to:
<a href="https://<tt>0xa</tt>x.gitbooks.io/linux-insides/content/Concepts/linux-cpu-3.html">linux-insides</a>
It looks like the hexa-decimal parsing gets applied to the link target too.
When formatting source code such as an array element as inline monospace text, it is wrongly considered a reference. This affects latex and html output.
Since \
has a special meaning in tex, it must be replaced accordingly. Backslashes should not occur in normal writing but may occur in code. I came across this issue when adding the RTC date/time format as inline code. Putting '%Y-%m-%d %H:%M:%S\n'
into the txt file made latex choke on \n
.
I've only tried this with the LaTeX backend.
If you use a [Gosh-like] reference inside an image caption, that image caption has no text in the finale LaTeX-generated document (only e.g. "Abbildung 3:"). When using LaTeX-style citation that works as expected.
[image dummy.png 20% ] A dummy image with correct label
[image dummy.png 20% ] A dummy image with missing label due to [Citation]
[image dummy.png 20% ] A dummy image with correct label despite \cite{Citation}
While the latex output explicitly covers this case, the regular expressions used for html output are missing the colon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.