I'm trying to use cl-markdown on SBCL/linux.
To start, I tried # cd cl-markdown/website/source # sbcl cl-user> (require :cl-markdown) cl-user> (cl-markdown:markdown #P"index.md")
This mostly works, but it complains that Unable to find RESOURCES/HEADER.MD in any of the search-locations Unable to find RESOURCES/FOOTER.MD in any of the search-locations
I can get past this by renaming these files to uppercase, but thought there might be a better solution (which doesn't involve HFS). The filenames that appear in *.md are all lowercase...
Thanks, Daniel
Hi Daniel,
thanks for the report; I'm traveling right now but will try to look at this soon.
On Nov 4, 2008, at 12:50 AM, Daniel Herring wrote:
I'm trying to use cl-markdown on SBCL/linux.
To start, I tried # cd cl-markdown/website/source # sbcl cl-user> (require :cl-markdown) cl-user> (cl-markdown:markdown #P"index.md")
This mostly works, but it complains that Unable to find RESOURCES/HEADER.MD in any of the search-locations Unable to find RESOURCES/FOOTER.MD in any of the search-locations
I can get past this by renaming these files to uppercase, but thought there might be a better solution (which doesn't involve HFS). The filenames that appear in *.md are all lowercase...
Thanks, Daniel
cl-markdown-devel mailing list cl-markdown-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cl-markdown-devel
-- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
On Tue, 4 Nov 2008, Gary King wrote:
On Nov 4, 2008, at 12:50 AM, Daniel Herring wrote:
cl-user> (require :cl-markdown) cl-user> (cl-markdown:markdown #P"index.md")
This mostly works, but it complains that Unable to find RESOURCES/HEADER.MD in any of the search-locations Unable to find RESOURCES/FOOTER.MD in any of the search-locations
thanks for the report; I'm traveling right now but will try to look at this soon.
Ok. I hoped this was simply a case of user error.
After poking around, I think the problem is the read-from-string in %pull-arguments-from-string.
(cl-markdown::%pull-arguments-from-string "resources/header.md") -> (RESOURCES/HEADER.MD)
Later, Daniel
On Wed, 5 Nov 2008, Daniel Herring wrote:
On Tue, 4 Nov 2008, Gary King wrote:
On Nov 4, 2008, at 12:50 AM, Daniel Herring wrote:
cl-user> (require :cl-markdown) cl-user> (cl-markdown:markdown #P"index.md")
This mostly works, but it complains that Unable to find RESOURCES/HEADER.MD in any of the search-locations Unable to find RESOURCES/FOOTER.MD in any of the search-locations
thanks for the report; I'm traveling right now but will try to look at this soon.
Ok. I hoped this was simply a case of user error.
After poking around, I think the problem is the read-from-string in %pull-arguments-from-string.
(cl-markdown::%pull-arguments-from-string "resources/header.md") -> (RESOURCES/HEADER.MD)
Here's a rough "works for me for today" fix.
(defmethod process-span ((name (eql 'eval)) registers) ;; the one register contains the command and the buffer index. (bind (((command &rest args) (%pull-arguments-from-string (first registers))) (buffer-index (and args (fixnump (first args)) (first args)))) (process-handle-eval command (or (and buffer-index ;; dherring added the following IF (if (eql command 'cl-user::include) (list (item-at (bracket-references *current-document*) buffer-index)) (%pull-arguments-from-string (item-at (bracket-references *current-document*) buffer-index)))) args))))
But having gotten that far, I think it would be better to simply use {include "file.md"} instead of {include file.md}
- Daniel
Hi Daniel,
Thanks for pushing on this. Wrapping the filename in quotes is probably the best solution right now. (I don't like having to check to see whether or not a particular extension is doing the parsing). I'm also thinking that since this is Markdown and not Lisp, it would be reasonable to wrap the parsing in dynamic bindings for *print-case*, etc. I'm going to experiment with this _real_ soon now (I hope).
regards,
On Nov 6, 2008, at 3:54 PM, Daniel Herring wrote:
On Wed, 5 Nov 2008, Daniel Herring wrote:
On Tue, 4 Nov 2008, Gary King wrote:
On Nov 4, 2008, at 12:50 AM, Daniel Herring wrote:
cl-user> (require :cl-markdown) cl-user> (cl-markdown:markdown #P"index.md")
This mostly works, but it complains that Unable to find RESOURCES/HEADER.MD in any of the search-locations Unable to find RESOURCES/FOOTER.MD in any of the search-locations
thanks for the report; I'm traveling right now but will try to look at this soon.
Ok. I hoped this was simply a case of user error.
After poking around, I think the problem is the read-from-string in %pull-arguments-from-string.
(cl-markdown::%pull-arguments-from-string "resources/header.md") -> (RESOURCES/HEADER.MD)
Here's a rough "works for me for today" fix.
(defmethod process-span ((name (eql 'eval)) registers) ;; the one register contains the command and the buffer index. (bind (((command &rest args) (%pull-arguments-from-string (first registers))) (buffer-index (and args (fixnump (first args)) (first args)))) (process-handle-eval command (or (and buffer-index ;; dherring added the following IF (if (eql command 'cl-user::include) (list (item-at (bracket-references *current- document*) buffer-index)) (%pull-arguments-from-string (item-at (bracket-references *current-document*) buffer-index)))) args))))
But having gotten that far, I think it would be better to simply use {include "file.md"} instead of {include file.md}
- Daniel
cl-markdown-devel mailing list cl-markdown-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cl-markdown-devel
-- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM
cl-markdown-devel@common-lisp.net