Markdown Preprocessing
The heart of this application is a markdown preprocessor for pandoc
that allows to link research topics to working groups and individual institute members. The basic routines are
Further the auxiliary routine
ist used.
The main routine for preprocessing is
The main tools for the preprocessor are regular expressions and sed
. These tools are used in order to translate keys
for working groups or staff members into predefined values. These values are extracted from the corresponding files in /static
.
The following image shows the header of a markdown file before and after the preprocessor run
preproc_wg.sh
This subroutine is responsible for substituting the keys of the working groups: aa
, cm
, dm
, nm
, st
by their full name and a link in markdown syntax.
More precisely, when calling preproc_wg.sh
on a markdown file, the line
### Working Groups: aa
is translated into
### Working Groups: [Lehrstuhl Angewandte Analysis](aa.html)
Furthermore a file aa.md
is created containing the line
## [Finite Sections of Aperiodic Schrödinger Operators](aperiodSchr.html)
See the command line help for further information regarding the options, or type
preproc_wg.sh --help
preproc_staff.sh
This subroutine is responsible for substituting the keys of the staff members: dgallaun
, fgabel
by their full name and a link in markdown syntax.
More precisely, when calling preproc_staff.sh
on a markdown file, the line
### Collaborators (MAT): dgallaun, fgabel
is translated into
### Collaborators (MAT): [Dennis Gallaun, M. Sc.](dgallaun.html), [Fabian Gabel, M. Sc.](fgabel.html)
Furthermore a files dgallaun.md
and fgabel.md
are created containing the line
## [Finite Sections of Aperiodic Schrödinger Operators](aperiodSchr.html)
See the command line help for further information regarding the options or type
preproc_staff.sh --help
extract_title.sh
For a given markdown file topic.md
containing the line
# Title of my topic
this routine returns
## [Title of my topic](topic.html)
to stdout
. See the command line help for further information regarding the options or type
extract_title.sh --help
preproc_topic.sh
This routine calls preproc_wg.sh
and preproc_staff.sh
. See the command line help for further information regarding the options or type
preproc_topic.sh --help