Code Monkey home page Code Monkey logo

cl-markdown's Introduction

My passion project is cl-nix-lite, a Common Lisp package scope for Nix, without Quicklisp.

I also maintain tomono, a multi-to-monorepository merge tool. It’s written entirely as a Literate Program.

My work is dual licensed under AGPLv3 and commercial licensing.

cl-markdown's People

Contributors

catap avatar genworks avatar hraban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cl-markdown's Issues

question: parsing

Can I have access to the pagraphs of a parsed md file? I would like to retrive (without rendering) the first paragraph of a file.

Weird install error

Hi, i'm getting the following error when I try to load cl-markdown from quicklisp.
Do you have any idea about that ?

Welcome to GNU CLISP 2.49 (2010-07-07) http://clisp.cons.org/

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2010

Type :h and hit Enter for context help.

;; Loading file /home/siegfried/.clisprc.lisp ...
;; Loading file /home/siegfried/quicklisp/setup.lisp ...
;; Loaded file /home/siegfried/quicklisp/setup.lisp
;; Loaded file /home/siegfried/.clisprc.lisp
[1]> (ql:quickload "cl-markdown")
To load "cl-markdown":
Load 1 ASDF system:
cl-markdown
; Loading "cl-markdown"
.
*** - FUNCALL: undefined function #:BINDING-GENERATOR57557
Rentrées possibles:
USE-VALUE :R1 Input a value to be used instead of (FDEFINITION '#:BINDING-GENERATOR57557).
RETRY :R2 Reéssayer
STORE-VALUE :R3 Input a new value for (FDEFINITION '#:BINDING-GENERATOR57557).
RETRY :R4 Retry compiling #<CL-SOURCE-FILE "cl-markdown" "dev" "html">.
ACCEPT :R5 Continue, treating compiling #<CL-SOURCE-FILE "cl-markdown" "dev" "html"> as having been successful.
ABORT :R6 Give up on "cl-markdown"
ABORT :R7 Abort main loop
Break 1 MARKDOWN[2]>

Multiline Text Blocks contain no line breaks

In order for plain text blocks to correctly render all whitespace must be included. Currently newlines are dropped.

(cl-markdown:markdown "\`\`\`
test
   test
test
\`\`\`" :stream nil)
=>
#<CL-MARKDOWN::DOCUMENT ``` test    test test ``` {10041C39F3}>
"<p><code></code><code> test    test test </code><code></code> </p>"

Thanks, I may try and tackle this, but wanted it documented before I forgot about it.

Does not work on SBCL?

I did not find any directions on submitting an issue, so in case additional information is needed, I would be happy to provide it.

Version: commit 3788802
OS: Debian Bookworm
SBCL Version: SBCL 2.2.9.debian
Also tested in:

  • ECL 21.2.1 [works fine]
  • GNU CLISP 2.49.93+ [works fine]

Steps to reproduce:

CL-USER> (asdf:load-asd (truename "./cl-markdown/cl-markdown.asd"))
#<ASDF/FIND-SYSTEM:DEFINE-OP >
#<ASDF/PLAN:SEQUENTIAL-PLAN {1001B04963}>
CL-USER> (asdf:load-system :cl-markdown)
;;; omitted some stuff for conciseness
T
CL-USER> (markdown:markdown "# Hello, *world*!")
; Debugger entered on #<SIMPLE-ERROR "~@<The stream ~2I~_~S ~I~_is not associated with a named file.~:>" {10055F8653}>

Error message:

The stream
  #<SB-SYS:FD-STREAM for "socket 127.0.0.1:39625, peer: 127.0.0.1:53756" {10013501C3}>
is not associated with a named file.
   [Condition of type SIMPLE-ERROR]

Trying to execute code by default, non-standard and dangerous

Trying to run this to generate documentation from the following file https://github.com/GrammaTech/gtirb/blob/master/README.md fails because cl-markdown mistakes the C++ code in that file as built in commands, and tries to run them. IMO it is dangerous to have non-standard code execution turned on by default like this.

To make matters somewhat worse, I'm unable to turn the execution off. From looking at the docs I could find, it seems that setting the following two variables to nil should remove any of these extra extensions *parse-active-functions* *render-active-functions*, however this has no effect. Is it possible to turn off this surprising (to me) command execution in cl-markdown's markdown function?

Thanks!

Note: otherwise this package looks great and I'd be thrilled to use it.

Failed tests on ECL: The function LIFT::GET-BACKTRACE-AS-STRING is undefined..

Hi,

Commit: 3788802

Tests passed on SBCL but failed on ECL:

Error while running (CL-MARKDOWN-TEST) from /gnu/store/cw1cc47a8xbz8g1yja8y19j3vvw9501m-ecl-cl-markdown-0.10.6-0.3788802/share/common-lisp/ecl/cl-markdown/lift-standard.config: The function LIFT::GET-BACKTRACE-AS-STRING is undefined.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

An error occurred during initialization:
The function LIFT::GET-BACKTRACE-AS-STRING is undefined..

Properly handle code-fencing

Code-fencing seems to half-way work. If you have some markdown that has a code-fence (3 backticks) the resulting HTML still contains back-ticks, e.g.

"
<h1>test</h1>

<p>
<code>`
(foo 'bar)
</code>`
</p>"

Parsing error

Hello, I'm using cl-markdown for a documentation project. So far, it's awesome.

I'm having an issue where the following:

title
=====
text under title

produces:

<h1>title text under title </h1>

what I expect is:

<h1>title</h1><p>text under title</p>

adding another line break between ===== and text under title yields correct results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.