How can I make a link in Markdown to display it correctly in docsify? - docsify

I'm create a Readme documentation using docsify. I use Markdown for it.
There's an issue with the link. I do this link in markdown as
https://its.1c.ru/db/edtdoc#content:76:hdoc
Screenshot for reference:
In docsify this looks as:
hdoc" target="_blank" rel="noopener"> with "Title" and 404 error.
How to fix it?

Below is an example link to www.example.com
Example link
These examples show how it's done.
[a link](https://www.example.com/)
[edtdoc](https://its.1c.ru/db/edtdoc#content:76:hdoc)

Related

weasyprint: change href link formatting in PDF

I am using weasyprint 56.1 with django-weasyprint 2.1.0, with vanilla settings.
When my HTML contains an ordinary hyperlink of the form
my link text
I want weasyprint to generate PDF that looks like
my link text
and where that text is a hyperlink to https://example.com.
However, what I get instead is the following format:
my link text (https://example.com)
where both parts are hyperlinked.
The link is correct and works, but I do not want the URL to show.
I could not find anything about this in the weasyprint documentation.
I just spent an hour in the weasyprint source code trying to find the spot where this formatting happens, but to no avail.
What logic is responsible for this formatting and how can I change it?
This isn't an answer to the question you asked, but I had the same issue, and then realized that in my CSS I had this artifact from a template:
a[href]:after {
content: " (" attr(href) ")";
}

Link to inner section in Liferay Wiki portlet

In Liferay Wiki Portlet (version 6.2), using "creole" syntax, I can add a link to page simply typing its name inside square brackets like in Wikipedia.
[[New Page]]
How to add a link to a specific section of "New Page"?
In Wikipedia it's simply [[New Page#Section Title]], but in Liferay wiki I tried with same syntax but it re-directs me always a new page.
I see that in "New Page" aside "Section Title" heading is present a # that is a perma-link with the following pattern
mydomain.com/-/wiki/Main/New+Page/maximized#section-New+Page-Section+Title
I tried in many ways but... How to create a link to an inner section?
As far as I know Liferay's Creole does not implement linking to a section. The creole help links to this more complete documentation which also does not mention this as part of their markup.
You might have to extend the syntax on your own or use the full link.

Create link with asciidoctor that has an ID

I would like to create a external link with an ID using asciidoctorj. I couldn't find anywhere in the manual a way on how to do it.
Asciidoctor Source:
http://stackoverflow.com[Cool Site, id="myId"] ...
Current result:
Cool Site ...
Expected result:
<a id="myId" href="http://stackoverflow.com">Cool Site</a> ...
I don't think it's possible (for now): http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#links
But you can define role to produce HTML class, for example:
http://discuss.asciidoctor.org[Discuss Asciidoctor, role="external"]
will produce:
Discuss Asciidoctor
You can also open an issue here to ask for it!

Can not make blueimp-image-gallery work with jade in node.js

I've been trying to make blueimp-image-gallery work with Jade on my Node.js server.
I've followed the instructions and came up with this .jade page:
extends layout
block content
h1 Test
div(id='blueimp-gallery-dialog', data-show='fade', data-hide='fade')
div(class='blueimp-gallery blueimp-gallery-carousel blueimp-gallery-controls')
div(class='slides')
a(class='prev') ‹
a(class='next') ›
a(class='play-pause')
div(id='links')
a(href='http://mypage.com/1.jpg' title='Frente' data-dialog)
img(src='http://mypage.com/2.jpg' alt='Frente')
a(href='http://mypage.com/6.jpg' title='Piscina' data-dialog)
img(src='http://mypage.com/6.jpg' alt='Piscina')
a(href='http://mypage.com/0.jpg' title='Garagem' data-dialog)
img(src='http://mypage.com/0.jpg' alt='Garagem')
script(src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js')
script(src='//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js')
script(src='http://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js')
script(src='js/blueimp-gallery.min.js')
For some reason all I see are static links to the pictures referenced above. When I click them, instead of see the galery as the example show I get redirected to the image link itself.
Blueimp-image-gallery pages states a few requirements, but I'm not sure if I need them or how to install them.
Can you help me to make it work?
Check your javascript console to see if there are any javascript errors on the page. If there are, they should give you a place to start when looking for a fix!

How to add a post image in Ghost's index?

I don't see any examples in the docs on how to use a post's image on the index view of Ghost. For example, you can see this theme doing it: http://studio-lite-theme.ghostify.io/
Any ideas?
EDIT: If anyone comes across this, I found this post that helped: https://ghost.org/forum/themes/1401-tip-how-to-show-the-pic-of-your-post-in-index-hbs/
Since version 0.5.2 there's now official support for Post Images. So avoid the hack using {{content words="0"}}
Instead use {{image}} to print out the url for the image.
For example:
<header {{#if image}}" style="background-image: url({{image}}){{/if}}">
As #user3088077 mentioned in his edit, I could make the image appear in the index page by replacing in the index.hbs
from {{ excerpt }} to {{content words="0"}}.
What happens is that excerpt does not include images, while content does.
This is aimed towards displaying the featured image in index which means it needs to be on the front page not on post page.

Resources