Skip to content

Instantly share code, notes, and snippets.

@kranthilakum
Last active December 10, 2015 00:49
Show Gist options
  • Save kranthilakum/4353992 to your computer and use it in GitHub Desktop.
Save kranthilakum/4353992 to your computer and use it in GitHub Desktop.
An example of Markdown mark-up language

Lorem Ipsum

A simple example of using Markdown mark-up language.

Headers

H1 Header

H2 Header

H3 Header

H4 Header

H5 Header
H6 Header

Emphasis

  • Surround a word with two asterisks (*), on both sides to make it bold. E.g. Lorem ipsum
  • Surround a word with one asterisk (*), on both sides to make it italized. E.g. Lorem ipsum
  • elit_velit__vestibulum__metus

Lists

Unordered List

  • List item
  • List item
  • List item

Ordered List

  1. List item
  2. List item
  3. List item

Mixed-mode List

  • List item

    1. List item
    2. List item
    3. List item
  • List item

    1. List item
    2. List item
    3. List item

Paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tellus mi, volutpat ut placerat eu, eleifend ut mauris. Nulla sit amet nibh leo. Ut vitae felis sollicitudin nisi dapibus laoreet at at arcu. Vestibulum quis risus purus. Praesent tempus, lacus vel euismod dignissim, elit velit vestibulum metus, sed tempor ligula orci vel ipsum. Morbi sed tortor at sem pharetra varius. Mauris erat neque, imperdiet ultrices molestie vel, eleifend vitae lorem. Integer risus erat, dapibus non accumsan et, convallis ut nisi.

Blockquotes

ceptio. Quid, si etiam, Vellei, falsum illud omnino est, nullam aliam nobis de deo cogitantibus speciem nisi hominis occurrere? tamenne ista tarn absurda defendes? Nobis fortasse sic occurrit, ut dicis; a parvis enim Jovem, Junonem, Minervam, Neptunum, Vulcanum, Apolliuem reliquosque deos ea facie novimus, qua pictores fictoresque voluerunt, neque solum facie, scd etiam ornatu, aetate, vestitu; at non Aegyptii nee Syri nee fere cuncta barbaria; firmiores enim videas apud cos opiniones esse de bestiis quibusdam quam apud nos de sanctissimis templis et

HyperLinks

Web-style Links, Reference-style Links, and Footnotes

The text [Lorem Ipsum] 1 is derived from sections 1.10.32–3 of Cicero's De finibus bonorum et malorum. The original passage began: Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit (Translation: "Neither is there anyone who loves pain itself since it is pain and thus wants to obtain it") ~ [Wikipedia] 2.

[Lorem Ipsum] 1 is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

Image

Alt Squirrel

Coding Block

package com.test.package;

import org.junit.*;
import static org.junit.Assert.asserEquals;

@Test
public class TestClass
{
    private static ClassToTest ct = new ClassToTest();

    public void testMethod
    {
        assertEquals("Hello Class Name", ct.getClassName());
    }
    public static void main(String args[])
    {
        org.junit.runner.JUnitCore.main("TestClass.class");
    }
}

Code block (with Fencing and Syntax-highlighting)

package javaapplication1;
/**
 *
 * @author KRANTHI
 */
public class Factorial
{
    public static void main (String args[])
    {
        int i, n = 10, f = 0;
        /* Problem: List of Factorial numbers. REQ: A list(1..10) with each number factorialized!
         * x! implies result of a product of its preceding numbers and itself E.g. 5! = 1.2.3.4.5 = 120 
         * Logic:
         * */
        for(i=0; i<n; i++)
        {
            f = f * (f-i);
            System.out.println(f);
        }
    }
}

Table

Item Quan Price
Apple 10 $10
Orange 20 $20

Escape Characters

© 2012 Lakum.in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment