Skip to content

Instantly share code, notes, and snippets.

@bakpakin
Created July 11, 2022 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakpakin/b61220169dd9589eee5c72b542991dc5 to your computer and use it in GitHub Desktop.
Save bakpakin/b61220169dd9589eee5c72b542991dc5 to your computer and use it in GitHub Desktop.
a remarkable patch
diff --git a/project.janet b/project.janet
index f1bd87c..90a6f6e 100644
--- a/project.janet
+++ b/project.janet
@@ -10,11 +10,11 @@
(declare-executable
:name "remark"
- :entry "src/remarkable.janet")
+ :entry "src/remarkable/init.janet")
(declare-source
- :source ["src/remarkable.janet"])
+ :source ["src/remarkable"])
(phony "spec" []
diff --git a/src/remarkable.janet b/src/remarkable/init.janet
similarity index 81%
rename from src/remarkable.janet
rename to src/remarkable/init.janet
index 587f441..3a091c4 100644
--- a/src/remarkable.janet
+++ b/src/remarkable/init.janet
@@ -1,10 +1,10 @@
-(use ./remarkable/globals)
+(use ./globals)
-(import ./remarkable/blocks)
-(import ./remarkable/inlines)
-(import ./remarkable/parser)
-(import ./remarkable/renderers/html)
+(import ./blocks)
+(import ./inlines)
+(import ./parser)
+(import ./renderers/html)
(defn parse-md [input &opt your-blocks your-inlines your-functions your-priorities]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment