How to get rendered colored text in GitLab / GitHub using AsciiDoc? - github

I'm new to AsciiDoc, so I made a simple project on GitHub to test the rendering of colored text.
The project is located at https://github.com/youngjim01/asciidoc-test
I can't seem to get the colored text to show when using the examples found on https://asciidoc-py.github.io/
Here's the source that I'm using to test:
[red]#Obvious# and [big red yellow-background]*very obvious*.
[underline]#Underline text#, [overline]#overline text# and
[blue line-through]*bold blue and line-through*.
It was taken directly from https://asciidoc-py.github.io/asciidoc.css-embedded.html
Any help in understand what I'm doing wrong is much appreciated.

Thanks goes to mojavelinux for answering this question in the thread at https://discuss.asciidoctor.org/Color-for-Text-td7509.html#a8689
To recap the most important point:
GitHub and GitLab do not permit using colors in content in the repository preview view. This has been requested countless times, and the response is always to reject that request.

Related

How to add an image to github ReadMe.md file

I have tries all the below and the image does not seems to be appearing on my read me file. I've added the image under the issues as someone suggested but nothing. also tried numerous other methods but the image does not want to appears and on the video tutorials i'm doing line by line but nothing.
link to the isssues:
https://user-images.githubusercontent.com/89415628/185356092-4229772b-1852-4ee0-9daa-043ff87a2080.png
using the img tag with the image that are in the root folder
<img src="https://github.com/Opzalas/CMPG-323-Overview---33448809/blob/main/branching.png?raw=true">
The most used method to add image to read me file with image under the issues
![](https://github.com/Opzalas/CMPG-323-Overview---33448809/blob/main/assets/images/89415628/185356092-4229772b-1852-4ee0-9daa-043ff87a2080.png?raw=true)
image stored on the root repo with image link
![](https://github.com/Opzalas/CMPG-323-Overview---33448809/blob/main/branching.png)
** Image with the root directory**
![](branching.png)
What is funny is that it is working within stack overflow but not on github with the img tag with root directory.
Answer provided in #Benjamin W's comment; thank you, much appreciated. Please see answer below:
I took a look at your file, and the problem is that your text blocks are indented. In Markdown, that means "code block", where everything is interpreted literally. You have to un-indent them. I have created a PR to show you how.

Add an image to Github Readme file

I am trying to add an image to a Github ReadmE file and have found the same answers several times on different places, the only thing is that it doesn't work for me. I tried 2 methods, first is to upload to a site and add it to Readme like this:
![Image](https://pasteboard.co/JAJAuBP.png)
Which is the answer here. However, this just gives me this as result, where the link doesn't even go to my picture:
I also tried the method of putting the picture in a github folder in my project as described here, like this:
![alt text](https://github.com/eligolf/affinity_chess/tree/main/imgs/gui_image.png?raw=true)
By clicking the link I do get to the folder where my image is located, but the image itself won't show in the Readme. It just shows the same broken image icon as the first method. Removing the ?raw=true had no effect.
Why is this so hard? Can someone please let me know how to add an image to Github.

Style parameter can't be identified

I'm actually new to flutter and dart and I'm facing a problem for a couple of hours. I am using VS code and the code is from a tutorial (The code is working for the Tutor just fine...).
The Problem is that the style Parameter as seen in the following picture can't be identified.
Picture of code
Picture of Problem
I've already read a view other posts of stackoverflow, but I dont get it. My Path variables should be all right and I've checked all extensions and everything works right.
Also my Dart Sdk path in VScode is set to the right location:
C:\Users\Steffen Hain\flutter\bin\cache\dart-sdk
Appreciate your help!
your problem is that you closed the text widget before the style just remove the comma and the bracket shown in the image and put it where the blue arrow is:
hope it helped

GitPress can not show image

I use GitPress to write blog.
But recently i found it can not show image, but images could be loaded in GitHub.
Here is my GitPress blog
Here is the opposite GitHub page
I've tried:
push a test.md, which only show a test image.
rename the image folders, change the way to show image in Markdown(./folder/name.png,/folder/name.png,folder/name.png).
But the test.md sometimes can show image, when i correct the format in my blog, it just won't show any image.
I am the developer of GitPress.io.
I saw your posts and found that you have replaced all images with imgur. Please follow this post if you want to show images from the repo.
Please use the followed structure for your blog:
- test.md
- test/
- image.png
and put this in test.md:
![](/test/image.png)

"Error loading image resource' from xcasset using PDF

I have an "Arrows.xcassets" containing two items, both PDFs of vector art arrows. They are set to "Scales->Single Scale" and loaded into the Universal slot.
I am trying to load them into an SKNode:
let arrowTex = SKTexture(imageNamed:"green_arrow_up")
let up = SKSpriteNode(texture: arrowTex))
When I run this, I get this error in the console:
Error loading image resource: "green_arrow_up"
There are a number of posts hinting that this is something you can do (like this one), but I can't find one that actually shows how to refer to the images in question. I tried:
green_arrow_up#1x
green_arrow_up#1x.png
green_arrow_up
green_arrow_up.png
but none of those worked. I'm sure there's a simple trick?
UPDATE: I found a second thread of the linked question which had more details including a link to a known-good file. I grabbed that file and it worked fine, I was even able to scale it down nice and small and it still looks great. I used Gapplin for the conversion from SVG to PDF, does anyone know one that works?
Ok, after some poking about I found a solution. Gappin simply doesn't do the conversion correctly, although what that means I can't really say. However, I found an online converter, and presto, everything works. So if you get this error, try using that converter and see if that fixes it.