Skip to content

Commit

Permalink
Add .md to known extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kwsm committed Jan 7, 2019
1 parent ea51f9e commit 489621e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/texdoc.tex
Expand Up @@ -396,7 +396,7 @@ \subsection{Score directives}\label{ss-score}
\subsection{File extensions and names}\label{ss-ext}

The allowed file extensions are defined by the configuration item |ext_list|
(default: pdf, html, htm, txt, ps, dvi, no extension). You can configure it
(default: pdf, html, htm, txt, md, ps, dvi, no extension). You can configure it
with a line |ext_list = «your, list»| in a configuration file. Be aware
that it will completely override the default list, not add to it. An empty
string in the list means files without extension (no dot in the name), while a
Expand Down Expand Up @@ -646,7 +646,7 @@ \subsubsection{Structure of configuration files}\label{sss-sonf-struct}

Set the list of recognised extensions to |«list»|. Default is
\begin{htcode}
pdf, html, htm, txt, dvi, ps,
pdf, html, htm, txt, md, dvi, ps,
\end{htcode}
This list is used to filter and sort the results that have the same
score(with the default value: pdf first, etc). Two special values are
Expand All @@ -671,7 +671,7 @@ \subsubsection{Structure of configuration files}\label{sss-sonf-struct}
you can add values if you want. For example, if you want Texdoc to be able
to find man pages and display them with the |man| command, you can use
\begin{htcode}
ext_list = pdf, html, htm, 1, 5, txt, dvi, ps,
ext_list = pdf, html, htm, 1, 5, txt, md, dvi, ps,
viewer_1 = man
viewer_5 = man
\end{htcode}
Expand Down
2 changes: 1 addition & 1 deletion script/config.tlu
Expand Up @@ -544,7 +544,7 @@ function setup_config_from_defaults()
mode = 'view',
interact_switch = 'true',
machine_switch = 'false',
ext_list = 'pdf, htm, html, txt, ps, dvi, ',
ext_list = 'pdf, htm, html, txt, md, ps, dvi, ',
basename_list = 'readme, 00readme',
badext_list = 'txt, ',
badbasename_list = 'readme, 00readme',
Expand Down
2 changes: 1 addition & 1 deletion spec/config/general_spec.rb
Expand Up @@ -16,7 +16,7 @@
"machine_switch=false",
"max_lines=20",
"basename_list=readme, 00readme",
"ext_list=pdf, htm, html, txt, ps, dvi, ",
"ext_list=pdf, htm, html, txt, md, ps, dvi, ",
"interact_switch=true",
"fuzzy_level=5",
"rm_dir=rmdir",
Expand Down

0 comments on commit 489621e

Please sign in to comment.