0
2.1kviews
(Duplicate) How do I format my posts using Markdown or HTML?
1 Answer
1
9views

When posting on Ques10, you can use the visual editor (for questions and answers, but not comments), Markdown, and some HTML. If you're new to Markdown, you may want to visit the official Markdown syntax reference page.

Here are some tips for common formatting scenarios:

HTML TAGS

<a>              - hyperlink.
<b>              - bold, use as last resort <h1>-<h3>, <em>, and <strong> are 
                   preferred.
<blockquote>     - specifies a section that is quoted from another source.
<code>           - defines a piece of computer code.
<del>            - delete, used to indicate modifications.
<dd>             - describes the item in a <dl> description list.
<dl>             - description list.
<dt>             - title of an item in a <dl> description list.
<em>             - emphasized.
<h1>, <h2>, <h3> - headings.
<i>              - italic.
<img>            - specifies an image tag.
<kbd>            - represents user input (usually keyboard input).
<li>             - list item in an ordered list <ol> or an unordered list <ul>.
<ol>             - ordered list.
<p>              - paragraph.
<pre>            - pre-element displayed in a fixed width font and and 
                   unchanged line breaks.
<s>              - strikethrough.
<sup>            - superscript text appears 1/2 character above the baseline 
                   used for footnotes and other formatting.
<sub>            - subscript appears 1/2 character below the baseline.
<strong>         - defines important text.
<strike>         - strikethrough is deprecated, use <del> instead.
<ul>             - unordered list.
<br>             - line break.
<hr>             - defines a thematic change in the content, usually via a 
                   horizontal line.

Code Blocks

Indent four spaces to create an escaped <pre> <code> block:

printf("%d\n", 42);  /* what was the
                        question again? */

The text will be wrapped in tags, and displayed in a monospaced font. The first four spaces will be stripped off, but all other whitespace will be preserved. You can select a block of code and press ctrl K to automatically add four spaces to the beginning of every selected line.


Linebreaks

End a line with two spaces to add a <br> linebreak:

Do you register on Ques10.com?  
Not yet.

Italics and Bold

*This is italicized*
**This is bold**
Use ***italics and bold together***

Headers

Underline text to make the two <h1> <h2> top-level headers :

Header 1
========
Header 2
--------

The number of = or - signs doesn't matter; one will work. But using enough to underline the text makes your titles look better in plain text.

Use hash marks for several levels of headers:

# Header 1 #
## Header 2 ##
### Header 3 ###

The closing # characters are optional.


Horizontal Rules

Insert a horizontal rule <hr/> by putting three or more hyphens, asterisks, or underscores on a line by themselves:

Rule #1
---
Rule #2
*******
Rule #3
___

Using spaces between the characters also works:

Rule #4   
- - - -

Links

Select text and press ctrl L

Ex. Want to learn about LaTex? Visit here


LaTex

Ques10 uses MathJax to render LaTeX. You can use single dollar signs to delimit inline equations, and double dollars for blocks:

The *Gamma function* satisfying $\Gamma(n) = (n-1)!\quad\forall
    n\in\mathbb N$ is via through the Euler integral

$$
    \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
    $$

Simple lists

  • A bulleted <ul> list:

    • Use a minus sign for a bullet
    • Or plus sign
    • Or an asterisk


  • A numbered <ol> list:

    1. Numbered lists are easy
    2. Markdown keeps track of the numbers for you
    3. So this will be item 3.


- A double-spaced list:

  • This list gets wrapped in <p> tags

    • So there will be extra space between items

Images

Images can be added primarily by using the the editor toolbar button Image icon. This brings up a special interface that allows you to upload an image online (through the imgur hosting service) through us - even from your clipboard. Alternatively, it can be input similarly to adding a link:

HTML <img src="https://example.com/img.jpg">
Markdown ![sample image](https://example.com/img.jpg)

Additional Learning

Learn how to write equations using Mathjax


← How to write a good answer    |    Reputation and Levels →


Please log in to add an answer.
The thread is closed. No new answers may be added.