Skip to main content

Using Markdown

Comments

68 comments

  • theovasilis

    Hi, a +1 for controlling the size of the displayed images relative to the viewer. In most of my cases they need to be bigger. Cheers!

    0
  • RoseThys

    @James

    I could use 'target="_self" instead of blank' as well.
    I am making a game for six year olds:

    https://sketchfab.com/models/f518b961f41049ca8ec1378993c2a3d8/embed

    And I am going to use a lot of links (like n° 4) for little games (e.g. drawing).
    But if the link always creates a new tab, there will be too many tabs at the end of the game (4 levels x 5 links=20!).
    This game is part of a bigger project and if all goes well, it will be used by hospitals in Belgium.
    Can you help me?
    Thank you in advance

    0
  • James

    Hi there,

    I'm afraid it's not possible to force (and not planned to allow) links in Annotations to target _self. Even if it were, the link would open in the embedded iframe itself, not in the main browser tab.

    You could build something more custom using the Viewer API, though!

    https://sketchfab.com/developers/viewer

    0
  • RoseThys

    Thank you for your answer! 
    I found a workaround: I gave the little games that open in another tab a 'back' button (for when you are finished playing).
    This button closes the tab of the little game, so you go back to the previous tab (sketchfab).

    Is it in any way possible that all the annotations are opened at the same time and from te beginning?
    I know you can open one with ?annotation = x, but I guess you can only do this with one annotation?

    0
  • James

    Cool, nice workaround.

    I'm afraid only one annotation can be open at a time. An annotation is associated with a camera position, and the camera cannot be in more than one position at the same time :)

    0
  • mhogue

    Hi! Is it possible to use Markdown to create annotations that are simply a few seconds of audio clips?

    0
  • James

    @mhogue Hi! I'm afraid there's no support for adding audio or other rich media to annotations at the moment. We do support adding sounds in the viewer, but they currently can't be synced to an annotation.

    https://help.sketchfab.com/hc/en-us/articles/115000922746-Sounds

    0
  • thukon

    Can I currently create tables using markdown within annotations? I see its possible in the "Extra Markdown Specification" but I cant seem to get it working in the model.

    0
  • James

    I'm afraid tables are not supported in descriptions or annotations at the moment. What's the use case?

    0
  • thukon

    @James The use case would be like the example shown below.

    0
  • surfaceimpression

    Hello, Is it possible to change the colour of the text in the annotation using markdown?

    0
  • James

    Not at the moment, sorry!

    0
  • MANiacos

    Hello James,

    I would like to know if it's possible to zoom an image so if it has a text you can read it clearly. If not, is there another way?

    Thanks!

    0
  • lmendelson

    MANiacos - I've done it where the image itself links to a large view in its own tab using the following syntax:

    [ ! [ ] (image url) ] (image url)

    0
  • James

    Yep, that's exactly what I was going to recommend.

    0
  • MANiacos

    lmendelson James

    I've tried and it works! Thanks!

    0
  • matsgaohlsson

    I have just learned how to get images visable in an annotation.

    Then I tried to make it clickable by using the syntax [![](link/to/image)](https://.../../imagename.jpg). The link to the image is still there but the image in the annotation frame is exchange by a boring thumbnail symbol. How to avoid this result? 

     

     

    0
  • matsgaohlsson

    I found the solution by reading Imendelson´s recipe. Thanks!

    0
  • kerkstra

    Is it Possible to add a annotation with an image as the title to a link?

    0
  • James

    Sorry I'm not sure I understand the question. You want the image to link somewhere? You want an image in the title of the annotation?

    0
  • kerkstra

    Like in an annotation I want to add links to download a kinda file. I want to have an icon or image of that kinda file and when you click on it, it brings you to the HTML where it will download the file. If that makes sense? Also is there way to link a pdf in an annotation? 

    0
  • James

    Got it. You can link to pretty much anything you want, so you can just host a PDF somewhere and put its URL in the annotation, for example: https://sketchfab.zendesk.com/hc/article_attachments/360078346751/PBR_Guide_2018__20_page_test_.pdf

    0
  • kerkstra

    Thanks, but back to the first question. I want a image or logo of something in the annotation and when you click it, it takes you to an HTML. Sorry Im very new to Sketchfab

    0
  • James

    No worries! This is more about Markdown syntax in general, not really something specific to Sketchfab.

    You make a link in markdown like this:

    [Text](http://example.net/)

    And you embed an image like this:

    ![](https://website.com/path/to/img.jpg)

    So, you can combine these two things to make an image that is a link. Just insert the image instead of Text:

    [![](https://website.com/path/to/img.jpg)](http://example.net/)
    0
  • kerkstra

    GREAT!! I got it to work, thank you. One last thing, is there a way to make the picture or icon smaller or larger?

    0
  • James

    Afraid not, it will always just fill the width. For that I might just put a text link "PDF" below the image?

    0
  • spectorandco

    Hi James,

    Is it possible to open a link in the annotation in a new popup window instead of a new tab?

    0
  • James

    Hello,

    All links in annotations have the target="_blank" attribute set. That means they will open in a new tab or a new window, but as far as I know, it depends on on your browser settings.

    If you want more robust control over the experience. I recommend looking into the Viewer API: https://sketchfab.com/developers/viewer

    Here's an example of opening popups on top of the 3D viewer (go through a few steps of the tour, click a furniture item, or click a "Play" object: https://www.sandlerseating.com/neocon

    0
  • kerkstra

    In my annotation, if I wanted to type out #4 Rebar to be Used. How do I get the "#" to show up?

    0
  • James

    If you put a backslash (`\`) in front of the hash, it should "escape" it and put a literal hash instead of turning it into a markdown header.

    1

Please sign in to leave a comment.