File: config.h

package info (click to toggle)
ruby-rdiscount 2.1.7.1-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 412 kB
  • ctags: 572
  • sloc: ansic: 4,084; ruby: 440; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * rdiscount extension discount configuration
 */
#ifndef __MARKDOWN_D
#define __MARKDOWN_D 1

/* tabs are four spaces */
#define TABSTOP 4

/* enable fenced code blocks */
#define WITH_FENCED_CODE 1

/* include - and _ as acceptable characters in HTML tag names */
#define WITH_GITHUB_TAGS 1

/* enable discount and PHP Markdown Extra definition lists */
#define USE_EXTRA_DL 1
#define USE_DISCOUNT_DL 1

/* these are setup by extconf.rb */
#if HAVE_RANDOM
#define COINTOSS() (random()&1)
#elif HAVE_RAND
#define COINTOSS() (rand()&1)
#endif

#if HAVE_SRANDOM
#define INITRNG(x) srandom((unsigned int)x)
#elif HAVE_SRAND
#define INITRNG(x) srand((unsigned int)x)
#endif

#include "ruby-config.h"

#endif/* __MARKDOWN_D */