Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1 2 3 
Send Topic Print
Using Marked with Tinderbox - a tutorial (Read 27606 times)
Steve Scott
Full Member
*
Offline



Posts: 169

Re: Using Marked with Tinderbox - a tutorial
Reply #15 - Jun 06th, 2014, 1:28am
 
Well, I can't believe it!  I slogged through it and figured it out!

Let me know if anyone needs a tutorial.

If you install multimarkdown and the support files, your link will be here:

/Volumes/Data/User/gwashington/Library/Application\ Support/MultiMarkdown/bin/mmd2XHTML.pl

Create an export template with this text:  

^value(runCommand("perl  /Volumes/Data/Users/sscott/Library/Application\ Support/MultiMarkdown/bin/mmd2XHTML.pl     ",$Text))^    

I can explain more, but I'm done after slogging through it.

Steve
Back to top
 
 
  IP Logged
Graham Smith
Full Member
*
Offline



Posts: 66
Somerset, UK.
Re: Using Marked with Tinderbox - a tutorial
Reply #16 - Jun 6th, 2014, 2:29am
 
Steve,

I could be wrong, but Marked comes with latest version of MMD built in and MMD is updated when you update Marked.

Having said that the thread seemed to wander from using Marked, to using Markdown, so maybe what Marked does is irrelevant.

But just in case, I thought I would mention it.

Cheers,

Graham
Back to top
 
 
  IP Logged
Steve Scott
Full Member
*
Offline



Posts: 169

Re: Using Marked with Tinderbox - a tutorial
Reply #17 - Jun 6th, 2014, 10:30am
 
Hi Graham,

You are right the conversation wandered from marked, but it was always about how to best use markdown in tinderbox.  In order to use a runCommand, I installed separate version of multimarkdown.  I still use Marked , but using the runCommand has opened up greater flexibility and increased speed into my workflow.  Using Marked from Tinderbox requires a lot of manual work and manual saving of files in various locations.  As a teacher I am constantly updating files changing the dates of assignments, etc.  Using the runCommand, I can make a change and update several files simultaneously.  I think Marked is still very relevant.   The runCommand just opens up a new ways of doing things.

Steve
Back to top
 
 
  IP Logged
Graham Smith
Full Member
*
Offline



Posts: 66
Somerset, UK.
Re: Using Marked with Tinderbox - a tutorial
Reply #18 - Jun 6th, 2014, 11:13am
 
Hello Steve,

Interesting what you say, as I am in a similar position but only just started with Tinderbox.

The problem with Marked is that is that you need to set it up to open the same file as TB is exporting, or if using another editor, saving. But I rather like this txt file as an intermediary which I can then save as PDF or Word etc from Marked. I preface the file with the date

2014-06-05-File name.pdf

so I have running archive of changes, so for example if I change a hand in date for an assignment, I know the version date when that change was made.

I'm actually fairly happy with this, but I will reread this thread properly on how to do the compiling directly from TB.

Having said that, as I am still at the stage of being rather confused with TB, maybe I should stick with what I am doing until my experience is a little more mature !

Cheers,

Graham
Back to top
 
 
  IP Logged
Steve Scott
Full Member
*
Offline



Posts: 169

Re: Using Marked with Tinderbox - a tutorial
Reply #19 - Jun 6th, 2014, 12:25pm
 
Hi Graham,

Count me on the side of those confused with tinderbox.  I'm slowly getting it!  I love Marked for the reasons you mention

I started a new thread over here http://www.eastgate.com/Tinderbox/forum//YaBB.pl?num=1402071759/0#0to talk about my workflow. .  

STeve
Back to top
 
 
  IP Logged
Steve Scott
Full Member
*
Offline



Posts: 169

Re: Using Marked with Tinderbox - a tutorial
Reply #20 - Jun 12th, 2014, 12:36am
 
Assuming you have multi markdown installed, here is an improved code snippet to use to export markdown to html:


Code:
^value(runCommand("perl  /usr/local/bin/mmd2XHTML.pl     ",$Text))^    



Back to top
 
 
  IP Logged
andreas grimm
Full Member
*
Offline



Posts: 39

Re: Using Marked with Tinderbox - a tutorial
Reply #21 - Jan 28th, 2015, 7:01am
 
Important topic -- with lots of good suggestions so far. Thanks, everybody!

Steve Scott's improved code snippet did the trick on my end.

But now I struggle with German Umlaute ( ). Any ideas what I have to do in order to get them back?

Neither is markedApp able to display the German Umlaute once a txt- or md-file was exported out of Tinderbox.

Any ideas?

Cheers!
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Using Marked with Tinderbox - a tutorial
Reply #22 - Jan 28th, 2015, 7:19am
 
I've now particular knowledge in this area but it sounds like encoding. TB's own export saves UTF-8 text which does support accented characters. But if you're shelling out to Perl, the trip there/back or the script itself my be altering encoding to a more narrow encoding.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
andreas grimm
Full Member
*
Offline



Posts: 39

Re: Using Marked with Tinderbox - a tutorial
Reply #23 - Jan 28th, 2015, 8:35am
 
Exactly, Mark.

I'm using the runCommand script which calls up "mmd2XHTML.pl".

Is there a way -- maybe by using xlst or yaml -- to circumvent the possibility you're pointing at: that "the script itself my be altering encoding to a more narrow encoding."?

Best
a
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Using Marked with Tinderbox - a tutorial
Reply #24 - Jan 28th, 2015, 11:48am
 
As I say, this isn't my area of expertise. Anyone else?
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Using Marked with Tinderbox - a tutorial
Reply #25 - Jan 28th, 2015, 2:17pm
 
Tinderbox exports utf-8; be sure Marked knows to expect utf-8.

(If problems persist, send me an email with (a) a sample file, and (b) an exported document showing the umlaut problem, and (c) pertinent details of versions of Tinderbox, Marked, etc.
Back to top
 
« Last Edit: Jan 28th, 2015, 4:30pm by Mark Bernstein »  
WWW   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Using Marked with Tinderbox - a tutorial
Reply #26 - Jan 28th, 2015, 2:21pm
 
Quote:
Tinderbox exports UTF8; be sure Marked knows to expect uff-8.


Is that 'uff-8' or a typo for 'utf-8'?
Back to top
 
« Last Edit: Jan 28th, 2015, 2:21pm by Mark Anderson »  

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
andreas grimm
Full Member
*
Offline



Posts: 39

Re: Using Marked with Tinderbox - a tutorial
Reply #27 - Jan 28th, 2015, 7:09pm
 
Dear Mark Bernstein.

I just sent you an eMail. I attached the requested files.

Loved to hear back from you.

Cheers!

Back to top
 
« Last Edit: Jan 28th, 2015, 7:09pm by andreas grimm »  
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Using Marked with Tinderbox - a tutorial
Reply #28 - Jan 29th, 2015, 2:36pm
 
The other thing to check in this workflow is that you've turned off $HTMLEntities.  For example, Tinderbox normally converts an "&" in the text to "&", and a to ü -- you don't want that for Markdown.
Back to top
 
 
WWW   IP Logged
andreas grimm
Full Member
*
Offline



Posts: 39

Re: Using Marked with Tinderbox - a tutorial
Reply #29 - Apr 17th, 2015, 2:47pm
 
Question -- just for the sake of clarification:

Using "mmd2XHTML.pl" in runCommand works fine. Using "MultiMarkdown.pl", however, seems to work just fine, as well.

Anyone here who can shed some light on significant differences one might not sense at first glance.

Ideas?

Cheers!
Back to top
 
« Last Edit: Apr 17th, 2015, 2:49pm by andreas grimm »  
  IP Logged
Pages: 1 2 3 
Send Topic Print