re: serving markdown directly : any suggestions?
it makes it too easy to remove inconsistencies between all the different "flavors" if your users know exactly which converters are being used, so compile yours so it is as obscure as possible. -bowerbird ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
+++ Mayuresh Kathe [Feb 04 15 13:57 ]: hi, have been tinkering with markdown for a few hours now, so am still a noob. would like to use it for a documentation project which will be served over the web. need to know if there's any way to transform markdown content to (x)html on the fly at the web server level? I'm not recommending this approach, but if you really want to do this you could use an nginx module compiled against a C Markdown library. This would give you maximum performance and not involve scripting languages at all. Here's an example: https://github.com/jbfavre/ngx-markdown-module Note the cautions in the README. ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
re: serving markdown directly : any suggestions?
converting light-markup to .html ain't rocket-science. really. you can use any language to do it. specifically including perl. and besides, i think it's kinda cute that some perl people would "look down on" php, ruby, and python. good for the gander, eh? but if i had to place a bet, it would be on client-side javascript... -bowerbird ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
sure. thanks for the pointer. ~mayuresh On 2015-02-04 15:44, Jeff McNeill wrote: Try Docpad https://docpad.org/ [1] Sincerely, -- Jeff McNeill Links: -- [1] https://docpad.org/ ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
Sounds about right for the openbsd guys. I guess they prefer low level stuff, since higher level interpreter might promote lazier coding. But that just what an outsider would think. Different value systems I guess? On 04/02/2015 9:19 pm, "Wayne Brissette" wrote: > > On Feb 4, 2015, at 04:11, Mayuresh Kathe wrote: > > i can always use this during the prototype phase. > production phase would need to avoid php, ruby, python, etc. as the > community for which i am building this typically looks down upon those. > > > > Take three of the most prevalent and useful languages for this type of > stuff and throw them out the window. That sounds like the best way to start > out a project. Really? Come on that's just a crazy way to develop something. > > ___ > Markdown-Discuss mailing list > [email protected] > https://pairlist6.pair.net/mailman/listinfo/markdown-discuss > > ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
> On Feb 4, 2015, at 04:11, Mayuresh Kathe wrote: > > i can always use this during the prototype phase. > production phase would need to avoid php, ruby, python, etc. as the community > for which i am building this typically looks down upon those. Take three of the most prevalent and useful languages for this type of stuff and throw them out the window. That sounds like the best way to start out a project. Really? Come on that's just a crazy way to develop something.___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
Try Docpad https://docpad.org/ Sincerely, -- Jeff McNeill ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
this is way too cool.
i can always use this during the prototype phase.
production phase would need to avoid php, ruby, python, etc. as the
community for which i am building this typically looks down upon those.
that's actually why and how i landed upon this list, i was looking for a
markdown transformation script written in perl, and found it on the
daringfireball.net website.
~mayuresh
On 2015-02-04 15:21, Piero Wbmstr wrote:
Hello,
I have some personal (public) work that could interest you:
- first a simple PHP parser [6]
(https://github.com/piwi/markdown-extended) quite easy to use and you
can run on any server using PHP 5.3+
- then an online webservice to transform a markdown content available
at http://api.aboutmde.org/ [7] that uses a simple Webservice
interface available at https://github.com/piwi/mde-service [8] (with
the documentation of the online tool)
- finally, a simple Apache configuration to display any ".md" file
parsing it with the PHP parser: https://github.com/piwi/mde-cgi [9]
Hope this could help.
-- piwi
Le 04.02.2015 10:36, mofo syne a écrit :
Okay then, well if you are running in php, and you got the
parsedown.php file as well, then you can give this a shot.
Just modify the .htaccess file rewrite rule from "RewriteCond
%{REQUEST_URI} ^(.*).md" to "RewriteCond %{REQUEST_URI} ^(.*).html"
See if that works for you.
Cheers,
==
http://parsedown.org [2] and mod_rewrite
Usage: Place this file (parsedownRender.php) in your root directory
and add these lines below to your .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*).md
RewriteRule .
/parsedownRender.php?css=/css/markdown1.css&file=%{REQUEST_URI} [L]
*/
$file = "./".$_GET["file"]; // 'file' => /md/test.md [3]
$css = ( $_GET['css']!="" ) ? htmlspecialchars($_GET['css']) :
"/css/style.css";
function parsedownInclude($f){
require_once 'Parsedown.php';
$Parsedown = new Parsedown();
echo is_readable($f) ? $Parsedown->text(file_get_contents($f)) :
"File Not Found: ".htmlspecialchars($f);
}
?>
On Wed, Feb 4, 2015 at 8:29 PM, Mayuresh Kathe
wrote:
i did muse around with that approach, but, that's not what is
expected for my use case.
i need the markdown content to be dynamically transformed to
(x)html on the server.
this is to allow collaborators on the documentation to send in only
diff files for corrections, additions, etc. which would be
plain-text, which is easier to understand for non web (html + css)
developers.
i guess i missed mentioning the project for which i am doing this,
it is for the "openbsd faq".
this is just a test run, once i succeed, i intend to convert the
entire "faq" to markdown, probably by hand, set up a server for the
demo, before submitting it to the openbsd crowd for consideration.
~mayuresh
On 2015-02-04 14:50, mofo syne wrote:
Have you considered compiling the website on your computer first
then
uploading it as a static website?
E.g. via Jekyll?
hi,
have been tinkering with markdown for a few hours now, so am still
a
noob.
would like to use it for a documentation project which will be
served
over the web.
need to know if there's any way to transform markdown content to
(x)html on the fly at the web server level?
use case:
a web server with the above capabilities would have the document
root
folder holding a bunch of markdown files and a 'css' file.
on visiting that web server's address over 'http', the index.md [4]
[1]
file would get transformed into (x)html, pick-up the 'css' and show
a
beautiful page to the visitor.
all this, while i would be busy writing plain old markdown.
i am sorry if this has been asked out here before, but i couldn't
find any such queries, perhaps my googling skills are bad. :)
thanks,
~mayuresh
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5]
[2]
Links:
--
[1] http://index.md [4]
[2] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
[5]
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5]
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5]
Links:
--
[1] http://briankhuu.com
[2] http://parsedown.org
[3] http://test.md
[4] http://index.md
[5] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
[6] https://github.com/piwi/markdown-extended
[7] http://api.aboutmde.org/
[8] https://github.com/piwi/mde-service
[9] https://github.com/piwi/mde-cgi
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
Hello,
I have some personal (public) work that could interest you:
- first a simple PHP parser [6]
(https://github.com/piwi/markdown-extended) quite easy to use and you
can run on any server using PHP 5.3+
- then an online webservice to transform a markdown content available at
http://api.aboutmde.org/ [7] that uses a simple Webservice interface
available at https://github.com/piwi/mde-service [8] (with the
documentation of the online tool)
- finally, a simple Apache configuration to display any ".md" file
parsing it with the PHP parser: https://github.com/piwi/mde-cgi [9]
Hope this could help.
-- piwi
Le 04.02.2015 10:36, mofo syne a écrit :
> Okay then, well if you are running in php, and you got the parsedown.php file
> as well, then you can give this a shot.
>
> Just modify the .htaccess file rewrite rule from "RewriteCond %{REQUEST_URI}
> ^(.*).md" to "RewriteCond %{REQUEST_URI} ^(.*).html"
>
> See if that works for you.
>
> Cheers,
> ==
>
> /*
> Coder: Brian Khuu briankhuu.com [1]
> Purpose: To allow for displaying of .md file transparently to visitors via
> http://parsedown.org [2] and mod_rewrite
> Usage: Place this file (parsedownRender.php) in your root directory and add
> these lines below to your .htaccess file
>
>
> RewriteEngine On
> RewriteCond %{REQUEST_URI} ^(.*).md
> RewriteRule . /parsedownRender.php?css=/css/markdown1.css&file=%{REQUEST_URI}
> [L]
>
>
> */
> $file = "./".$_GET["file"]; // 'file' => /md/test.md [3]
> $css = ( $_GET['css']!="" ) ? htmlspecialchars($_GET['css']) :
> "/css/style.css";
>
> function parsedownInclude($f){
> require_once 'Parsedown.php';
> $Parsedown = new Parsedown();
> echo is_readable($f) ? $Parsedown->text(file_get_contents($f)) : "File Not
> Found: ".htmlspecialchars($f);
> }
> ?>
>
> />
>
>
>
>
>
> On Wed, Feb 4, 2015 at 8:29 PM, Mayuresh Kathe wrote:
> i did muse around with that approach, but, that's not what is expected for my
> use case.
>
> i need the markdown content to be dynamically transformed to (x)html on the
> server.
> this is to allow collaborators on the documentation to send in only diff
> files for corrections, additions, etc. which would be plain-text, which is
> easier to understand for non web (html + css) developers.
>
> i guess i missed mentioning the project for which i am doing this, it is for
> the "openbsd faq".
>
> this is just a test run, once i succeed, i intend to convert the entire "faq"
> to markdown, probably by hand, set up a server for the demo, before
> submitting it to the openbsd crowd for consideration.
>
> ~mayuresh
>
> On 2015-02-04 14:50, mofo syne wrote:
> Have you considered compiling the website on your computer first then
> uploading it as a static website?
>
> E.g. via Jekyll?
> hi,
>
> have been tinkering with markdown for a few hours now, so am still a
> noob.
>
> would like to use it for a documentation project which will be served
> over the web.
>
> need to know if there's any way to transform markdown content to
> (x)html on the fly at the web server level?
>
> use case:
> a web server with the above capabilities would have the document root
> folder holding a bunch of markdown files and a 'css' file.
> on visiting that web server's address over 'http', the index.md [4] [1]
> file would get transformed into (x)html, pick-up the 'css' and show a
> beautiful page to the visitor.
> all this, while i would be busy writing plain old markdown.
>
> i am sorry if this has been asked out here before, but i couldn't
> find any such queries, perhaps my googling skills are bad. :)
>
> thanks,
>
> ~mayuresh
>
> ___
> Markdown-Discuss mailing list
> [email protected]
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5] [2]
>
> Links:
> --
> [1] http://index.md [4]
> [2] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5]
>
> ___
> Markdown-Discuss mailing list
> [email protected]
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5]
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [5]
Links:
--
[1] http://briankhuu.com
[2] http://parsedown.org
[3] http://test.md
[4] http://index.md
[5] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
[6] https://github.com/piwi/markdown-extended
[7] http://api.aboutmde.org/
[8] https://github.com/piwi/mde-service
[9] https://github.com/piwi/mde-cgi
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
nice, really nice.
let me get a droplet on digitalocean.com to test this out.
btw, isn't there anything similar, but using the perl transformation
script from daringfireball.net?
~mayuresh
On 2015-02-04 15:06, mofo syne wrote:
Okay then, well if you are running in php, and you got the
parsedown.php file as well, then you can give this a shot.
Just modify the .htaccess file rewrite rule from "RewriteCond
%{REQUEST_URI} ^(.*).md" to "RewriteCond %{REQUEST_URI}
^(.*).html"
See if that works for you.
Cheers,
==
http://parsedown.org [4] and mod_rewrite
Usage: Place this file (parsedownRender.php) in your root directory
and add these lines below to your .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*).md
RewriteRule .
/parsedownRender.php?css=/css/markdown1.css&file=%{REQUEST_URI} [L]
*/
$file = "./".$_GET["file"]; // 'file' => /md/test.md [5]
$css = ( $_GET['css']!="" ) ? htmlspecialchars($_GET['css']) :
"/css/style.css";
function parsedownInclude($f){
require_once 'Parsedown.php';
$Parsedown = new Parsedown();
echo is_readable($f) ? $Parsedown->text(file_get_contents($f)) :
"File Not Found: ".htmlspecialchars($f);
}
?>
On Wed, Feb 4, 2015 at 8:29 PM, Mayuresh Kathe
wrote:
i did muse around with that approach, but, that's not what is
expected for my use case.
i need the markdown content to be dynamically transformed to
(x)html on the server.
this is to allow collaborators on the documentation to send in only
diff files for corrections, additions, etc. which would be
plain-text, which is easier to understand for non web (html + css)
developers.
i guess i missed mentioning the project for which i am doing this,
it is for the "openbsd faq".
this is just a test run, once i succeed, i intend to convert the
entire "faq" to markdown, probably by hand, set up a server for the
demo, before submitting it to the openbsd crowd for consideration.
~mayuresh
On 2015-02-04 14:50, mofo syne wrote:
Have you considered compiling the website on your computer first
then
uploading it as a static website?
E.g. via Jekyll?
hi,
have been tinkering with markdown for a few hours now, so am
still a
noob.
would like to use it for a documentation project which will be
served
over the web.
need to know if there's any way to transform markdown content
to
(x)html on the fly at the web server level?
use case:
a web server with the above capabilities would have the
document root
folder holding a bunch of markdown files and a 'css' file.
on visiting that web server's address over 'http', the index.md
[1] [1]
file would get transformed into (x)html, pick-up the 'css' and
show a
beautiful page to the visitor.
all this, while i would be busy writing plain old markdown.
i am sorry if this has been asked out here before, but i
couldn't
find any such queries, perhaps my googling skills are bad. :)
thanks,
~mayuresh
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
[2] [2]
Links:
--
[1] http://index.md [1]
[2] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
[2]
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [2]
Links:
--
[1] http://index.md
[2] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
[3] http://briankhuu.com
[4] http://parsedown.org
[5] http://test.md
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
Okay then, well if you are running in php, and you got the parsedown.php
file as well, then you can give this a shot.
Just modify the .htaccess file rewrite rule from "RewriteCond
%{REQUEST_URI} ^(.*)\.md" to "RewriteCond %{REQUEST_URI} ^(.*)\.html"
See if that works for you.
Cheers,
==
http://parsedown.org and mod_rewrite
Usage: Place this file (parsedownRender.php) in your root directory and add
these lines below to your .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)\.md
RewriteRule .
/parsedownRender.php?css=/css/markdown1.css&file=%{REQUEST_URI} [L]
*/
$file = "./".$_GET["file"]; // 'file' => /md/test.md
$css = ( $_GET['css']!="" ) ? htmlspecialchars($_GET['css']) :
"/css/style.css";
function parsedownInclude($f){
require_once 'Parsedown.php';
$Parsedown = new Parsedown();
echo is_readable($f) ? $Parsedown->text(file_get_contents($f)) : "File Not
Found: ".htmlspecialchars($f);
}
?>
On Wed, Feb 4, 2015 at 8:29 PM, Mayuresh Kathe wrote:
> i did muse around with that approach, but, that's not what is expected for
> my use case.
>
> i need the markdown content to be dynamically transformed to (x)html on
> the server.
> this is to allow collaborators on the documentation to send in only diff
> files for corrections, additions, etc. which would be plain-text, which is
> easier to understand for non web (html + css) developers.
>
> i guess i missed mentioning the project for which i am doing this, it is
> for the "openbsd faq".
>
> this is just a test run, once i succeed, i intend to convert the entire
> "faq" to markdown, probably by hand, set up a server for the demo, before
> submitting it to the openbsd crowd for consideration.
>
> ~mayuresh
>
>
> On 2015-02-04 14:50, mofo syne wrote:
>
>> Have you considered compiling the website on your computer first then
>> uploading it as a static website?
>>
>> E.g. via Jekyll?
>> hi,
>>
>> have been tinkering with markdown for a few hours now, so am still a
>> noob.
>>
>> would like to use it for a documentation project which will be served
>> over the web.
>>
>> need to know if there's any way to transform markdown content to
>> (x)html on the fly at the web server level?
>>
>> use case:
>> a web server with the above capabilities would have the document root
>> folder holding a bunch of markdown files and a 'css' file.
>> on visiting that web server's address over 'http', the index.md [1]
>> file would get transformed into (x)html, pick-up the 'css' and show a
>> beautiful page to the visitor.
>> all this, while i would be busy writing plain old markdown.
>>
>> i am sorry if this has been asked out here before, but i couldn't
>> find any such queries, perhaps my googling skills are bad. :)
>>
>> thanks,
>>
>> ~mayuresh
>>
>> ___
>> Markdown-Discuss mailing list
>> [email protected]
>> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [2]
>>
>>
>> Links:
>> --
>> [1] http://index.md
>> [2] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
>>
> ___
> Markdown-Discuss mailing list
> [email protected]
> https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
>
___
Markdown-Discuss mailing list
[email protected]
https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
i did muse around with that approach, but, that's not what is expected for my use case. i need the markdown content to be dynamically transformed to (x)html on the server. this is to allow collaborators on the documentation to send in only diff files for corrections, additions, etc. which would be plain-text, which is easier to understand for non web (html + css) developers. i guess i missed mentioning the project for which i am doing this, it is for the "openbsd faq". this is just a test run, once i succeed, i intend to convert the entire "faq" to markdown, probably by hand, set up a server for the demo, before submitting it to the openbsd crowd for consideration. ~mayuresh On 2015-02-04 14:50, mofo syne wrote: Have you considered compiling the website on your computer first then uploading it as a static website? E.g. via Jekyll? hi, have been tinkering with markdown for a few hours now, so am still a noob. would like to use it for a documentation project which will be served over the web. need to know if there's any way to transform markdown content to (x)html on the fly at the web server level? use case: a web server with the above capabilities would have the document root folder holding a bunch of markdown files and a 'css' file. on visiting that web server's address over 'http', the index.md [1] file would get transformed into (x)html, pick-up the 'css' and show a beautiful page to the visitor. all this, while i would be busy writing plain old markdown. i am sorry if this has been asked out here before, but i couldn't find any such queries, perhaps my googling skills are bad. :) thanks, ~mayuresh ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss [2] Links: -- [1] http://index.md [2] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
Re: serving markdown directly : any suggestions?
Have you considered compiling the website on your computer first then uploading it as a static website? E.g. via Jekyll? hi, have been tinkering with markdown for a few hours now, so am still a noob. would like to use it for a documentation project which will be served over the web. need to know if there's any way to transform markdown content to (x)html on the fly at the web server level? use case: a web server with the above capabilities would have the document root folder holding a bunch of markdown files and a 'css' file. on visiting that web server's address over 'http', the index.md file would get transformed into (x)html, pick-up the 'css' and show a beautiful page to the visitor. all this, while i would be busy writing plain old markdown. i am sorry if this has been asked out here before, but i couldn't find any such queries, perhaps my googling skills are bad. :) thanks, ~mayuresh ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss ___ Markdown-Discuss mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/markdown-discuss
