MarkdownRecord Docs

Configuration

Much of MarkdownRecord's behavior is configurable. This section covers what can be configured.

You can configure MarkdownRecord in the initializer that is generated upon installation. The config attributes available are:

File sorting

MarkdownRecord uses an instance of MarkdownRecord::FileSorting::Base by default to sort files in order to determine concatenation order of the markdown content it renders. This class is also responsible for trimming the numeric prefix prefixes off filenames. However, two additional classes are available for this purpose to allow the use of different kinds of prefixes and sort orders. They are:

You may also implement your own file sorter. It only needs to implement a to_sort_value(value) method which returns an object that responds to <=>.

The above content was rendered from source files at: content/v_0_1/configuration