Command-line experts can go straight to the Users Guide or the pandoc man page.Open a Finder window and go to Applications, then Utilities.Then double click on Terminal.Or, click the spotlight icon in the upper right hand corner of your screen and type Terminal you should see Terminal under Applications.).
If you use Windows in desktop mode, run the cmd or powershell command from the Start menu. If you are using cmd, type chcp 65001 before using pandoc, to set the encoding to UTF-8. Guess what pwd stands for) This should be your home directory. You should be in the Documents subdirectory of your home directory. You can always type the up-arrow key to go back through your history of commands. So if you want to use a command you typed earlier, you dont need to type it again: just use up-arrow until it comes up. Try this. (You can use down-arrow as well, to go the other direction.) Once you have the command, you can also use the left and right arrows and the backspacedelete key to edit it. To try this, lets first go back up to our Documents directory. Your terminal should fill in the rest ( test ), and then you can hit enter. Thats easy, but first we need to create a text file in our pandoc-test subdirectory. On Linux, different platforms come with different text editors: Gnome has GEdit, and KDE has Kate. You might want to look at Sublime Text or (if youre willing to put in some time learning an unfamiliar interface) Vim or Emacs. The -s option says to create a standalone file, with a header and footer, not just a fragment. And the -o test1.html says to put the output in the file test1.html. Note that we could have omitted -f markdown and -t html, since the default is to convert from markdown to HTML, but it doesnt hurt to include them. At this point you can start to learn more about them by reading the Users Guide. But be sure to check the FAQs first, and search through the mailing list to see if your question has been answered before.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |