Code Monkey home page Code Monkey logo

gosh's Issues

Adding images (for genodians.org)

A couple notes; those might not be bugs per se, but might need to be documented:

- if I specify the image as being part of a subfolder, e.g. "img/Pulse-vs-pulse", the generated code replaces the slash with an underscore: Thus I have to forego trying to tidy up the images in subfolders
  • 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">

  • EDIT: also, if one wants to mention a link in an image caption (e.g. "click here for enlarged image"), one has to use plain html "A" anchor, instead of the square brackets GOSH link syntax; no biggie, took me a second to realize.
    Will publish soon, probably later today!

Link URL gets translated in part

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.

latex: replace `\` in code text by `\textbackslash`

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.

Image caption text not present when containing a reference

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}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.