So, in your posts you can do 3 tildes ~ to start a code-block and 3 more to stop it.
Here's how it looks right now. We're going to make modifications to the font size and maybe the color theme.
public function convertHtmlToMarkdown($html)
{
return $this->htmlParser->convert($html);
}
public function convertMarkdownToHtml($markdown)
{
return $this->markdownParser->transform($markdown);
}
The theme is obviously Monokai right now. Here are the other pre-built themes that we have to choose from... http://highlightjs.org/static/test.html
Are there an tips/tricks around different languages (html, js, css, php)? I guess I could just test here...
<script>
$(function() {
$('a').on('click', function() {
alert('Clicked');
});
});
</script>
<a href="http://www.laravel.com/">Laravel</a>
<?php
$thing = new Thing;
echo $thing->getProperty();
?>
class Thing {
public function getProperty()
{
return 'property';
}
}
$thing = new Thing;
echo $thing->getProperty();
... OK, so it seems to detect whether you're in php code or html, and then color code appropriately.
Yea, I just sorta implemented highlight.js as-is. I think that we have someone working on converting the "Laravel" syntax highlighting scheme that Dayle made, or something like that.
In addition... Now, you can just paste links and they'll linkify.
<p>This is for check</p>
some bold text ##You could also make lazy gist load
https://gist.github.com/anonymous/5446951 ![shut up and take my money!][1]
#Very cool! [1]: http://img.playground.ru/images/3/8/2590868-shut_up_and_take_my_money_9299_2560x16001.jpg
I have always been a fan of Obsidian
and the Railcasts
is sweet too
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community