Comments (5)
Just fyi, I've updated GitPitch to auto-translate all anchors within a slideshow to target _blank
per suggestion. In fact the 1.x branch already did this but for some reason I pruned this code when releasing 2.x. Anyway, from now on regular Markdown link syntax is all you need.
from gitpitch.
There is a simple workaround to give you the behavior you want when people click on you links. You can replace implicit Markdown links in your PITCHME.md
with HTML anchor syntax that uses a _blank
target.
For example, based on the sample presentation you provided, replace this markdown in your PITCHME.md
:
- https://github.com/terrywbrady/info
With this:
<a target="_blank" href="https://github.com/terrywbrady/info">- https://github.com/terrywbrady/info</a>
Note, this general approach is also mentioned in the HTML Slides page in the Wiki.
from gitpitch.
This works as you describe. I had presumed I would need to rewrite the whole slide with the HTML syntax. This works well. I have updated my presentations.
from gitpitch.
I don't consider the suggested workaround as acceptable. Changing a URL to a full <a>
tag removes all the markdown readability.
I'd be in favor of having the following script executed in gitpitch:
Array.from(document.getElementByTagName('a')).forEach($link => {
if ($link.hostname !== window.location.hostname) {
$link.setAttribute('target', '_blank');
}
});
And if you need more arguments, here are my reasons: https://augustin-riedinger.fr/en/resources/thoughts-on-target-blank/
from gitpitch.
Great! Thanks for taking feedback into consideration!
from gitpitch.
Related Issues (20)
- Presentation 404: PITCHME.md not found in repo on GitHub. HOT 3
- "gitpitch : 3.0" setting does not allow 3.0 decks to be viewed in new desktop app HOT 8
- GitPitch 4.0 Tutorials? HOT 8
- @ul[list-fade-bullets]: Support for showing all list items as faded but only the current one highlighted HOT 2
- Gitpitch Cloud issue after 4.0 upgrade HOT 2
- Can't access v3 docs from website HOT 1
- Indentation of code block in markdown is wrong HOT 1
- mchem for MathJax HOT 1
- Exception when accessing my slides. HOT 6
- Disable ToC Auto-generation
- Laser Pointer in Speaker mode
- "href" link may not work sometimes HOT 2
- Can't view downloaded html decks. HOT 2
- Why is it shutting down? HOT 2
- GitPitch Is Shutting Down on March 1, 2021 HOT 3
- Dockerfile
- How to access presentations formerly hosted on gitpitch.com domain?
- Gitpitch and latest open source version clarification
- gitpich.com/pricing is a 404 HOT 1
- Video Tutorial Broken Link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitpitch.