librelist archives

« back to archive

[shoesrb] display formated text

[shoesrb] display formated text

From:
Евге́н Сменти́на
Date:
2014-04-13 @ 10:26
Hi, im writing a small app with shoes as my student task. It is a window
with Contents and articles and irb interpretator. Are there any way to
display formated text in shoes for example html or marckdown?

-- 
Eugene

Re: [shoes] [shoesrb] display formated text

From:
Kc Erb
Date:
2014-04-14 @ 13:16
Hi there,

Shoes doesn't natively speak markdown or html. To format text you would use
Shoes methods like *strong* and *em.* You can read more about those methods
in the manual: http://shoesrb.com/manual/Element.html.

Hope that helps!

-KC


On Sun, Apr 13, 2014 at 4:26 AM, Евге́н Сменти́на <djsmentya@gmail.com>wrote:

> Hi, im writing a small app with shoes as my student task. It is a window
> with Contents and articles and irb interpretator. Are there any way to
> display formated text in shoes for example html or marckdown?
>
> --
> Eugene
>



-- 
 "If there is an exception to every rule, then every rule must have at
least one exception; the exception to this one being that it has no
exception."

Re: [shoes] [shoesrb] display formated text

From:
Arne Brasseur
Date:
2014-04-14 @ 15:22
Here's some sample code of how you could convert a subset of Markdown to
Shoes using the Kramdown library. I don't really have time to make more of
it but it's a base that someone could take and run with. It's rendering the
headers but the paragraphs aren't coming through for some reason. (tried on
Shoes 4)

https://gist.github.com/plexus/10657334


2014-04-14 15:16 GMT+02:00 KC Erb <iamkcerb@gmail.com>:

> Hi there,
>
> Shoes doesn't natively speak markdown or html. To format text you would
> use Shoes methods like *strong* and *em.* You can read more about those
> methods in the manual: http://shoesrb.com/manual/Element.html.
>
> Hope that helps!
>
> -KC
>
>
> On Sun, Apr 13, 2014 at 4:26 AM, Евге́н Сменти́на <djsmentya@gmail.com>wrote:
>
>> Hi, im writing a small app with shoes as my student task. It is a window
>> with Contents and articles and irb interpretator. Are there any way to
>> display formated text in shoes for example html or marckdown?
>>
>> --
>> Eugene
>>
>
>
>
> --
>  "If there is an exception to every rule, then every rule must have at
> least one exception; the exception to this one being that it has no
> exception."
>



-- 
| @plexus <https://twitter.com/plexus>  | arnebrasseur.net | The Happy
Lambda <https://leanpub.com/happylambda> |

Re: [shoes] [shoesrb] display formated text

From:
Kc Erb
Date:
2014-04-14 @ 15:43
Sweet!


On Mon, Apr 14, 2014 at 9:22 AM, Arne Brasseur <arne.brasseur@gmail.com>wrote:

> Here's some sample code of how you could convert a subset of Markdown to
> Shoes using the Kramdown library. I don't really have time to make more of
> it but it's a base that someone could take and run with. It's rendering the
> headers but the paragraphs aren't coming through for some reason. (tried on
> Shoes 4)
>
> https://gist.github.com/plexus/10657334
>
>
> 2014-04-14 15:16 GMT+02:00 KC Erb <iamkcerb@gmail.com>:
>
> Hi there,
>>
>> Shoes doesn't natively speak markdown or html. To format text you would
>> use Shoes methods like *strong* and *em.* You can read more about those
>> methods in the manual: http://shoesrb.com/manual/Element.html.
>>
>> Hope that helps!
>>
>> -KC
>>
>>
>> On Sun, Apr 13, 2014 at 4:26 AM, Евге́н Сменти́на <djsmentya@gmail.com>wrote:
>>
>>> Hi, im writing a small app with shoes as my student task. It is a window
>>> with Contents and articles and irb interpretator. Are there any way to
>>> display formated text in shoes for example html or marckdown?
>>>
>>> --
>>> Eugene
>>>
>>
>>
>>
>> --
>>  "If there is an exception to every rule, then every rule must have at
>> least one exception; the exception to this one being that it has no
>> exception."
>>
>
>
>
> --
> | @plexus <https://twitter.com/plexus>  | arnebrasseur.net | The Happy
> Lambda <https://leanpub.com/happylambda> |
>



-- 
 "If there is an exception to every rule, then every rule must have at
least one exception; the exception to this one being that it has no
exception."