The first thing to do is to convert the markdown text to HTML. Therefore, it is best to keep the number of blocks to the minimum required. Since every block goes through every line of text to be processed, the more blocks you use in your cleaner, the longer the cleaning process will take. This makes it easier to follow the cleaner and to edit it in the future! When you add a cleaner to the middle area, you can add a more readable description of what you are doing with that cleaner. The yellow area under the middle work area is for adding comments. Therefore, each time it processes a block in the cleaner, it actually goes completely through all of the text. Each action placed in the middle area will be applied one at a time starting from the top of the screen to the bottom. You can add an actions by dragging one from the list on the right to where you want it in the middle. The right hand side has all of the available actions that you can add to the cleaner. The middle area is the list of clearners to be applied. Pressing the + button at the bottom left will create a new cleaner. As you can see, I have many custom cleaners. It will show the contents of the last edited cleaner. This is the working area to create a custom cleaner. Press the Edit Cleaners to open the custom cleaner editor. If you have stuff in your clipboard already, it will automatically be placed in the work area. It contains the work area to the left, and the list of text cleaners to the right. When you start TextSoap, you will be presented with the main screen. That is were the power of TextSoap really shines. Whilst working on some articles, for Tuts+, I decided to automate the text conversion process. Therefore, there's a lot of translating, adding, and other tasks required to get the text ready for publication. Many content management systems, or CMS, like WordPress do not accept markdown directly. ![]() Thankfully, there is Markdown to markup the text, but not hide the text. When writing for the web, you often need some type of markup to style your text. When I'm writing I like to see the words. In this tutorial, I will introduce TextSoap and create a custom text cleaner for processing an article written in Markdown to make it ready for adding into WordPress. It comes with special text cleaners - little routines for processing text. TextSoap is an invaluable utility that I find increasingly useful.
0 Comments
Leave a Reply. |