how can i write code blocks in maruku
for ruby,javascript
currently i am using technique. but my first line moving to left.
hash["test"] = "test"
hash.merge!("test" => "test")
h=HashWithIndifferentAccess.new
h.update(:test => "test")
{:lang=ruby html_use_syntax=true}
...
I'm using Maruku, to convert from Markdown (superset) to HTML, do you know how can I do to convert from HTML to Markdown?
...
Hi, all.
I've developed custom filters for HAML (http://github.com/alec-c4/cb-haml-filters) and have a small problem with textile and maruku. Maybe you can help me with this
Problem with textile
with code
%h2 Textile test
:cbtextile
h4. YouTube video
http://www.youtube.com/watch?v=0_IXrjqKbE4&feature=player_embedded
...
For this project, I need to be able to mix Haml tags within the Maruku filter. For example, will I be able to do this:
#contain
:maruku
## Hello H2 Tag
div{:id => 'divinmaruku'}
**Can I do this?**
I know you can just unindent where you want to get out Maruku, but it is a pain to do :maruku whenever I want to use it...
I would like to write documentation using Jekyll with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that?
The HTML part is easy but I would like to use @media print CSS for making the PDF file.
I have a few ideas how to do this.
Use PrinceXML, unfortuna...
I'm using the Maruku markdown processor. I'd like this
*blah* blah "blah" in [markdown](blah)
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script>
...do stuff...
</script>
but it complains when I render it with a multitude of errors. The first one being
_______________________________________________...
I am using Maruku with my RoR3 app.
But the problem is that when i use the h(text) method to escape the text from the database before i use Maruku it escapes > to > so Maruku wont see this as a blockquote.
But i still want to escape the rest of the text so my question is how can i make this work?
I don't want to disable the escapin...
I'm working in the Insitiki code and trying to extend the maruku syntax to generate some custom html tags.
Example:
|youtube 0FWPr6u8YF |
Should print the html code as follows:
<object data='http://www.youtube.com/v/01hcB2zmMqM' style='width:425px; height:350px;' type='application/x-shockwave-flash'><param name='movie' value='http:/...
I am new to Rails but have used PHP extensively over the years. I am building a simple blog (I know) to get my skills up in the MVC/Rails world.
I have the basics working but have spent the weekend trying to get Maruku to work eg a post body saved from a text area with Markdown Extra markup to the db and then back again to the browser.
...