Add an example showing greater blocks can be nested if they are different types.
This commit is contained in:
parent
7023fb4617
commit
352532b759
23
org_mode_samples/greater_block/Makefile
Normal file
23
org_mode_samples/greater_block/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
SHELL := bash
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.DELETE_ON_ERROR:
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
SRCFILES := $(wildcard *.org)
|
||||
OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES))
|
||||
|
||||
ifeq ($(origin .RECIPEPREFIX), undefined)
|
||||
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
|
||||
endif
|
||||
.RECIPEPREFIX = >
|
||||
|
||||
.PHONY: all
|
||||
all: $(OUTFILES)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
> rm -rf $(OUTFILES)
|
||||
|
||||
%.tree.txt: %.org ../common.el ../dump_org_ast.bash
|
||||
> ../dump_org_ast.bash $< $@
|
7
org_mode_samples/greater_block/nested.org
Normal file
7
org_mode_samples/greater_block/nested.org
Normal file
@ -0,0 +1,7 @@
|
||||
#+begin_center
|
||||
foo
|
||||
#+begin_quote
|
||||
bar
|
||||
#+end_quote
|
||||
baz
|
||||
#+end_center
|
Loading…
Reference in New Issue
Block a user