klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 295 forks source link

Cannot create image-based link. #1402

Closed ginychin728 closed 1 year ago

ginychin728 commented 1 year ago
Challenge 1: Customer Complaint about Flight Cancellation [[Challenge 1: Customer Complaint about Flight Cancellation]] Challenge 2: Customer Complaint of Missing Baggage [[Challenge 2: Customer Complaint of Missing Baggage]] Challenge 3 [[Challenge 3: Customer Complaint of In-Flight Disruptions]]
ginychin728 commented 1 year ago

FYI. The code I used to create image-based links are shown as below. But none of them can work properly:

1. <a href="Challenge 1: Customer Complaint about Flight [Cancellation"></a>
2. <a data-passage="Challenge 2: Customer Complaint of Missing Baggage" class="link-internal link-image"></a>
3. <a data-passage="Challenge 3: Customer Complaint of In-Flight Disruptions"> </a>
greyelf commented 1 year ago

@ginychin728 The Twine 2.x application is just a Project & Passage Editor that knows how to combine the Passages of your project with a Story Format template to generate a HTML Story file. It is the Story Format you select that supplies all the functionality that is available when the generated Story HTML file is viewed in a web-browser. Based on the fact that two of the <a> (anchor) elements you supplied include a data-passage attribute I will assume you are using SugarCube.

Your question seems to be more "How do I..." related, than "I want to report a bug". So I suggest you ask it in either the Twine Discord server, or one of the Q&A forums that handle Twine questions. Links to both can be found in the Community section of the Twinery web-site.

klembot commented 1 year ago

Closing because this looks to be a format-specific question.

ginychin728 commented 1 year ago

The issue cannot be solved. I have used the right format and it is a bug obviously.