implicit-anchors.js revision 696:550f881d43ba
1139823Simp/*
265534Salfred * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
365534Salfred * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
461837Salfred *
561837Salfred * This code is free software; you can redistribute it and/or modify it
661837Salfred * under the terms of the GNU General Public License version 2 only, as
761837Salfred * published by the Free Software Foundation.
861837Salfred *
961837Salfred * This code is distributed in the hope that it will be useful, but WITHOUT
1061837Salfred * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1161837Salfred * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1261837Salfred * version 2 for more details (a copy is included in the LICENSE file that
1361837Salfred * accompanied this code).
1461837Salfred *
1561837Salfred * You should have received a copy of the GNU General Public License version
1661837Salfred * 2 along with this work; if not, write to the Free Software Foundation,
1761837Salfred * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1861837Salfred *
1961837Salfred * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2061837Salfred * or visit www.oracle.com if you need additional information or have any
2161837Salfred * questions.
2261837Salfred */
2361837Salfred
2461837Salfred/**
2561837Salfred * Test for Showdown markdown parser work with Nashorn.
2661837Salfred *
2761837Salfred * @test
28172467Ssilby * @run
29172467Ssilby */
30172467Ssilby
3161837Salfredvar input = "\nSearch the web at [Google][] or [Daring Fireball][].\n\n  [Google]: http://google.com/\n  [Daring Fireball]: http://daringfireball.net/";
3261837Salfredvar output = converter.makeHtml(input);
3361837Salfredprint(output);
3461837Salfred