Skip to content

Conceal additional commands like \section{} and \texttt{} #1978

@mawkler

Description

@mawkler

VimTeX conceals some commands like for instance \textbf{}, \textit{} which I love.

Is there any plan to conceal more commands? The ones that I personally miss the most are for \section{}/\subsection{}/\subsubsection{} and \texttt.

For \texttt{} I think that the surrounding command should be concealed and the text inside it should get a syntax highlighting.

As for \...section, in order to differentiate between the different levels it could for instance get concealed into the markdown syntax like this:

Without conceal:

\section{First Section}
Foo bar

\subsection{Second Section}
Foo bar

\subsubsection{Third Section}
Foo bar

With conceal:

# First Section
Foo bar

## Second Section
Foo bar

### Third Section
Foo bar

Would this be possible to implement?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions