diff --git a/lib/flotFyrTransformer.js b/lib/flotFyrTransformer.js
index d90da57..7becb20 100644
--- a/lib/flotFyrTransformer.js
+++ b/lib/flotFyrTransformer.js
@@ -46,7 +46,7 @@ module.exports = function(src, dest, markdownOptions) {
// if its a numbered Files, then remove number
if (markdownOptions.numberedFiles) {
- filename = filename.split(".")[0];
+ filename = filename.split(".")[1];
}
return through(function(chunk, enc, done) {
@@ -59,10 +59,10 @@ module.exports = function(src, dest, markdownOptions) {
},
markdownOptions
);
- // const jsx = toComponentModule(output, markdownOptions);
- // const beautifulJsx = prettier.format(jsx, prettierOption);
+ const jsx = toComponentModule(output, markdownOptions);
+ const beautifulJsx = prettier.format(jsx, prettierOption);
- done(null, output);
+ done(null, beautifulJsx);
});
}
};
diff --git a/output/1.testmarkdown.js b/output/1.testmarkdown.js
index 8e882f8..2299999 100644
--- a/output/1.testmarkdown.js
+++ b/output/1.testmarkdown.js
@@ -1,114 +1,152 @@
----
-title: Everything is ok
-quantity: 834
-prependJs:
- - "const Timer = require('./timer')"
- - "import { Watcher } from './watcher'"
----
-# An h1 header
-
-{{
Paragraphs are separated by a blank line.
+
+ 2nd paragraph. Italic, bold, and{' '}
+ monospace
. Itemized lists look like:
+
Block quotes are written like so.
+Here's a numbered list:
++ Note again how the actual text starts at 4 columns in (4 characters + from the left side). Here's a code sample: +
++ {' '} + for i in 1 .. 10 {'{'} do-something(i) {'}'} +
+
+ As you probably guessed, indented 4 spaces. By the way, instead of{' '}
+
+
+ define foobar() {'{'}
+ {'\n'}
+ {' '}print "Welcome to flavor country!";{'\n'}
+ {'}'}
+ {'\n'}
+
+
+ + +
++ (which makes copying & pasting easier). You can optionally mark the + delimited block for Pandoc to syntax highlight it: +
+
+
+ import time{'\n'}# Quick, count to ten!{'\n'}for i in range(10):
+ {'\n'}
+ {' '}# (but not *too* quick){'\n'}
+ {' '}time.sleep(0.5){'\n'}
+ {' '}print i{'\n'}
+
+
+
+
+ $ cd dillinger{'\n'}$ npm install -d{'\n'}$ node app{'\n'}
+
+
+ Now a nested list:
+First, get these ingredients:
+Boil some water.
+Dump everything in the pot and follow this algorithm:
++ {' '} + find wooden spoon uncover pot stir cover pot balance wooden spoon + precariously on pot handle wait 10 minutes goto first step (or + shut off burner when done) +
++ Here's a link to a website, to a{' '} + local doc, and to a{' '} + section heading in the current doc. Here's + a footnote [^1]. +
+[^1]: Footnote text goes here.
+First Header | +Second Header | +
---|---|
Content Cell | +Content Cell | +
Content Cell | +Content Cell | +
+ named links to Google
+
+ http://fest.com/
+