Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DokuWiki reader: Inline <code> should be code blocks #9154

Closed
Chaoses-Ib opened this issue Oct 22, 2023 · 0 comments
Closed

DokuWiki reader: Inline <code> should be code blocks #9154

Chaoses-Ib opened this issue Oct 22, 2023 · 0 comments
Labels

Comments

@Chaoses-Ib
Copy link

Chaoses-Ib commented Oct 22, 2023

In DokuWiki, <code> </code> is always treated as code blocks regardless of whether it is inline or outline. However, Pandoc parses inline <code> as inline codes.

For example, DokuWiki input:

  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php>
<?php
/**
 * Customization of the english language file
 * Copy only the strings that needs to be modified
 */
$lang['js']['nosmblinks'] = '';
</code>

image

GFM output, where the code is inline:

- For Mozilla and Firefox it can be enabled through different workaround
  mentioned in the [Mozilla Knowledge
  Base](http://kb.mozillazine.org/Links_to_local_pages_do_not_work).
  However, there will still be a JavaScript warning about trying to open
  a Windows Share. To remove this warning (for all users), put the
  following line in `conf/lang/en/lang.php` (more details at
  [localization](https://www.dokuwiki.org/localization#changing_some_localized_texts_and_strings_in_your_installation)):
  `<?php
  /**
   * Customization of the english language file
   * Copy only the strings that needs to be modified
   */
  $lang['js']['nosmblinks'] = '';
  `  

Reproduce on Try pandoc!

Pandoc version

pandoc.exe 3.1.8
Features: +server +lua
Scripting engine: Lua 5.4

OS: Windows 11 22631.2428 x64


Edit: More examples:

For example, <code>Favorites.Add("sep");</code>

You can also make the separator a heading (i.e. a label that appears visually different to other items) by appending the heading name to the **sep:** prefix. For example, <code>Favorites.Add("sep:Current Job");</code>

To add a folder, the first parameter should be the string **folder:** followed by the name of the folder (as a single parameter), optionally followed by the insertion position.

For example, <code>Favorites.Add("folder:Picture Locations");</code>

image

@Chaoses-Ib Chaoses-Ib added the bug label Oct 22, 2023
@jgm jgm closed this as completed in fbf9194 Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant