Loomio
Fri 2 Nov 2012 2:22AM

Markdown: text formatting made easy

RDB Richard D. Bartlett Public Seen by 148

Loomio uses "Markdown" to embed images and add text formatting to your discussions. You can switch Markdown on with the small grey icon beneath the comment box:

Here's a quick introduction to writing Markdown.

Headings

There are four different heading sizes, they get smaller as you go. Writing this...

# One hash heading
## Two hash heading
### Three hash heading
#### Four hash heading

Looks like this...
># One hash heading
>## Two hash heading
>### Three hash heading
>#### Four hash heading


Emphasis

You can use asterisks or underscores for emphasis. Writing this...

*italics with asterisks*  
_underline with underscores_
**bold with asterisks** or __bold with underscores__

Looks like this...

italics with asterisks
underline with underscores
bold with asterisks or bold with underscores


Lists:

i) Numbered Lists

Writing this...

My points are as follows:

1. First point.
2. Second point.
3. Third point.

Looks like this...

My points are as follows:

  1. First point.
  2. Second point.
  3. Third point.

ii) Bullet point list

Writing this...

My points are as follows:

* First point.
* Second point.
* Third point.

Looks like this...

My points are as follows:

  • First point.
  • Second point.
  • Third point.

>Note: You must add a new line before your first point (i.e. hit 'enter' twice before starting list).
>
>
>#### Correct
>
>
>Introduction Paragraph
>
>1. First Point
>2. Second Point
>3. Third point
>

>
>#### Incorrect
>
>
>Introduction Paragraph
>1. First Point
>2. Second Point
>3. Third point
>

>

Quotes

Just add a > before each paragraphso this...

> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ante justo, laoreet et elit eget, adipiscing posuere sapien. Aliquam ut elementum elit, vel vehicula elit. Sed nunc ligula, viverra at hendrerit quis, faucibus eget lacus. 

Looks like this...

> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ante justo, laoreet et elit eget, adipiscing posuere sapien. Aliquam ut elementum elit, vel vehicula elit. Sed nunc ligula, viverra at hendrerit quis, faucibus eget lacus.



To download a PDF version of the recipe, [click here](https://example.com/scrambled-eggs.pdf).


Images

To embed an image in a comment, first it needs to be hosted somewhere (imgur.com is a good option), then you can include it like so:

![](http://path.to/image.jpg)

Horizontal Rules

These are the dividers that go across the screen. To add them use three dashes, asterisks or underscores in a row.

***
or
---
or
___

Code Inclusion

code can be included by using the 'tick' character ` (found on the same key as the tilde, ~).

`example Function() ` 

looks like:
example Function()


usesMarkdown = false
User.find(2).
update_attributes( uses_markdown: usesMarkdown )

looks like:

usesMarkdown = false
  User.find(2).
       update_attributes( uses_markdown: usesMarkdown )
RDB

Richard D. Bartlett Fri 2 Nov 2012 2:34AM

Shout out to @Paul Smith for originating this thread over in another group :)

JG

John Graham Sat 14 Dec 2013 11:07PM

I've started using this - it's helpful!

NM

Néstor Menta Thu 25 Sep 2014 11:07AM

Hi!

I'm starting with Loomio and I have problems to text formatting, embed images and so on.

I mark as Enabled the Markdown but when I save changes nothing changes, what could it be?

Thanks!

AR

Arturo Ruano Thu 25 Sep 2014 12:53PM

I also have the same problem, I hope there is someone who can help us.

Gracias Nestor por el apunte, muy bueno !!!!

FL

Fred Look Mon 29 Sep 2014 2:09AM

is there a way to make small text?

MS

Michaela Spangenburg Tue 30 Sep 2014 3:19AM

@fredlook - do you mean like subtext or supertext (small and slightly above or below the midline of the text), small caps (basically what it sounds like) or just smaller text overall?

MI

mix irving Tue 30 Sep 2014 11:13AM

@fredlook I don't think there's a way to do small text

Looks like you've uncovered a bug we hadn't encountered yet with a recent update. Unfortunately the enable markdown setting is really hard to use at the moment.
I will file a bug report

In the meantime, if you click the A to the bottom right of the comment box, you will open a menu. The menu is hard to use at the moment, but see if you can click on the top option "Enable"

Once you post a message this setting Markdown Enabled will be saved as your preference and you won't have to do this again.

if you type:

**test**

you should now get :
test

NM

Néstor Menta Tue 30 Sep 2014 11:31AM

test

NM

Néstor Menta Tue 30 Sep 2014 11:31AM

Well, seems it works now, I'll be trying it from now. Thanks!

AR

Arturo Ruano Tue 30 Sep 2014 1:27PM

test

Load More