--- /dev/null
+%title: The Road Not Taken
+%author: Robert Frost
+
+Two roads diverged in a yellow wood, and sorry I could not travel both. And be one traveler, long I stood, and looked down one as far as I could. To where it bent in the undergrowth.
+
+Then took the other, as just as fair, and having perhaps the better claim. Because it was grassy and wanted wear, though as for that the passing there Had worn them really about the same. And both that morning equally lay, in leaves no step had trodden black.
+
+Oh, I kept the first for another day! Yet knowing how way leads on to way. I doubted if I should ever come back, I shall be telling this with a sigh. Somewhere ages and ages hence: Two roads diverged in a wood, and I. I took the one less traveled by, and that has made all the difference.
+
Use at least three ~ chars to open and at least as many or
more ~ for closing.
-~~~~~
-~~~
-int main(int argc, char \*argv[]) {
- printf("%s\\n", "Hello world!");
-}
-~~~
-~~~~~~~
+\~~~ {.numberLines}
+\int main(int argc, char \*argv[]) {
+\ printf("%s\\n", "Hello world!");
+\}
+\~~~~~~~~~~~~~~~~~~
becomes
-~~~
+~~~ {.numberLines}
int main(int argc, char \*argv[]) {
printf("%s\\n", "Hello world!");
}
-~~~
+~~~~~~~~~~~~~~~~~~
Pandoc attributes (like ".numberlines" etc.) will be ignored
sc++;
} else if(CHECK_BIT(bits, IS_TILDE_CODE) && CHECK_BIT(bits, IS_EMPTY)) {
- // remove tilde code markers
- (text->reset)(text);
+ // remove tilde code markers
+ (text->reset)(text);
+
} else {
// if slide ! has line
// IS_TILDE_CODE
if (wcsncmp(text->value, L"~~~", 3) == 0) {
- int tildes_in_line = next_nontilde(text, 0);
- if (tildes_in_line >= num_tilde_characters) {
- if (num_tilde_characters > 0) {
- num_tilde_characters = 0;
- } else {
- num_tilde_characters = tildes_in_line;
- }
- SET_BIT(bits, IS_EMPTY);
- SET_BIT(bits, IS_TILDE_CODE);
- return bits;
- }
+ int tildes_in_line = next_nontilde(text, 0);
+ if (tildes_in_line >= num_tilde_characters) {
+ if (num_tilde_characters > 0) {
+ num_tilde_characters = 0;
+ } else {
+ num_tilde_characters = tildes_in_line;
+ }
+ SET_BIT(bits, IS_EMPTY);
+ SET_BIT(bits, IS_TILDE_CODE);
+ return bits;
+ }
}
if (num_tilde_characters > 0) {
- SET_BIT(bits, IS_CODE);
- SET_BIT(bits, IS_TILDE_CODE);
- return bits;
+ SET_BIT(bits, IS_CODE);
+ SET_BIT(bits, IS_TILDE_CODE);
+ return bits;
}
// IS_STOP
return i;
}
-
int prev_blank(cstring_t *text, int i) {
while ((i > 0) && !iswspace((text->value)[i]))
i--;
// IS_CODE
if(CHECK_BIT(line->bits, IS_CODE)) {
- if (!CHECK_BIT(line->bits, IS_TILDE_CODE)) {
- // set static offset for code
- offset = CODE_INDENT;
- }
+ if (!CHECK_BIT(line->bits, IS_TILDE_CODE)) {
+ // set static offset for code
+ offset = CODE_INDENT;
+ }
// reverse color for code blocks
if(colors)