• Resolved horinitro

    (@horinitro)


    Hi,
    Previously, the following code allowed me to open a page in a new tab, but now it just navigates directly.
    Is there a special way to write this?
    thank you.

    [home](https://aaa.bbb){:target="_blank"}

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pierre-Henri Lavigne

    (@peter202202)

    Hi @horinitro ,

    Thank you for reaching me 👍 The plugin is based on PHP code using the extended version of markdown called “markdown extra“. So you can add html ID, classnames and attributes like this :

    [Yahoo](https://www.yahoo.com){#foo .bar .baz target=_blank rel=nofollow}

    That will be rendered as an example like:

    <a href="https://www.yahoo.com" id="foo" class="bar baz" target="_blank" rel="nofollow" >Yahoo</a>

    Now the point is that the rendering engine based on PHP is plugged via an add-on to the markdown extra syntax, but the editor engine on the admin screen based on JavaScript is still using standard markdown.

    So using the “_blank” keyword with an underscore character “_” within the brackets “{}” inside the editor following the classic model will still trigger the italic text until the next break line 🤪 :
    https://mega.nz/file/V0djVIYR#Ttcisvj3qgG-jnLgchONC9D2jQjKGCvnEyqKVeTyviY

    As a workaround I would suggest using a custom frame name without the underscore like
    {target=blank} or {target=newtab} which is still valid for HTML. If you are a developer just use any keyword except the ID / anchors that are used inside your page and that should be fine 😉

    Regards

    Thread Starter horinitro

    (@horinitro)

    Hi @peter202202

    Thank you.
    The method you taught me solved the problem.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.