YouTrack Server 2024.3 Help

Edit an Article

Writing an article for the knowledge base is rarely accomplished in one sitting. You'll probably have a round or editing or two before it's ready for publication. Any edits made prior to publication are saved in the background automatically.

Update an Article Draft

Every author has his or own style when it comes to revisions. Some prefer to write everything in one go, while others prefer to revisit, read, ponder, and rewrite their content prior to publication.

No matter which style you follow, YouTrack lets you make an unlimited number of edits to your article content and publish only when you think the time is right.

To edit an article draft:

  1. Select an article draft in the table of contents.

    • The article opens in the content editor.

    Edit an article draft.
  2. Update the article content or set the values for other issue attributes.

    • To set or change the project that the article belongs to, open the project selector at the top of the page. Use the filter to find a project by its name.

    • Restrict the visibility of the draft to specific users, groups and teams prior to publication. For details, see Article Visibility.

    • Attach files. To learn more, see Attach Files to Articles.

  3. When you're satisfied the content, click the Publish article button.

Revise a Published Article

Even the most perfectly polished articles require updates from time to time. Policies change, goals require recalibration, and processes evolve. Luckily, users who have the proper permissions can update published articles at any time.

If an article has already been published, edits are recorded and displayed in the version history for the article. This history is available to anyone who has permission to read the article. If a user introduced unwanted changes, or you want to roll back to a specific published version of the article, a user with sufficient permission can restore to a previous version. For details, see Review Version History.

To edit a published article:

  1. Select an article draft in the table of contents.

    • The article opens in the content pane.

  2. Click the Edit icon to the right of the article title.

    Edit a published article.
  3. Update the content of the article, including the title, as required.

  4. When finished, click the Save and publish button.

Visual Editing Mode

YouTrack supports two modes for formatting article content. In Visual mode, you can format the text in such a way that it closely resembles how the content should appear when published.

In this mode, you enter the content in the editor and use the controls in the toolbar to stylize the text.

Visual editing mode for articles.

Markdown Mode

The second mode that is supported for styling content in articles is Markdown. Markdown is a lightweight markup language that is used to apply formatting to plain text. To learn how to format text using Markdown in YouTrack, see Markdown Syntax.

Editing an article in Markdown mode.

In Markdown mode, you always see the content written in plain text. However, the options that can be used to format text in WYSIWIG mode are still available. When you click a formatting button in the toolbar, the corresponding Markdown characters are inserted at the current cursor position.

If you're not familiar with Markdown syntax, it may be hard to predict what your article will look like when published. For a quick preview that shows you what the article will look like when published, you can switch to Visual mode whenever you want. You can continue to edit the content in either mode according to your personal preference.

Syntax Highlights for Code Blocks

When you set the paragraph styling to Code block and paste a code snippet into an article in Visual mode, YouTrack tries to detect which language the code is written in and apply the appropriate syntax highlights. The name of the detected language appears in the lower-right corner of the code block.

Syntax highlights in code block.

If the actual language is different from the language that is detected automatically, open the selection menu and select the correct language from the list.

You can accomplish the same result in Markdown mode by specifying the language used in the info string for a fenced code block. To learn more, see Fenced Code Blocks.

Last modified: 09 October 2024