guides
guides copied to clipboard
Indexer does not ignore content inside of tags in Textile documents
The guide indexer (the thing that appends numbers before h3's and h4s) will choke if you have something like the following in a Textile document (taken from the Sproutcore Guides):
<plain>
h3. Topics Should Use h3
</plain>
The easy way to avoid breaking the indexer in this way is to add one or more spaces before the line with the h3 or h4. This works because the indexer is using a regular expression which looks for patterns that start at the beginning of the line.
The "right way" to fix this is to modify the guides gem so that the indexer only indexes content outside tags, but I'm not invested enough to fix this myself.