This Help forum is for issues relates to the latest release (1.7.8). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: [SOLVED] NOTE: Some prefix-chars not shown in UI

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #1

  • markus
  • markus's Avatar
  • Offline
  • Junior
  • Posts: 118
Entering a note to any event with text "1. aaa" results in "Note: aaa". => "1. " not shown.
Gedcom shows "2 NOTE 1. aaa" => OK

Multiline note "1. aaa <br>2.bbb" gets rendered to "[-] Note: aaa". => "1. " is missing.
Opening this compressed note results in "[+] Note: aaaa<br>1. aaa<br>2. bbb" => OK, Shows entered text.

"a. xxx" works, as well as "1.aaa" (no space)

Reading the Gedcom-standard I understand that all chars are allowed at beginning of note?!

Wrong understanding/usage? Bug in webtrees?
Best regards /Markus
webtrees 1.7.9 + latest updates + several addons
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11741
This seems to be a bug in the Markdown formatting library that we use (michelf/php-markdown).
If you change from markdown to plain-text, then the problem disappears.

There are very few markdown libraries that support PHP 5.3

It provides some non-standard extensions (e.g. tables), which are not included in other libraries, so if we use a different library, we will lose tables.

See github.com/fisharebest/webtrees/issues/479
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #3

  • mp
  • mp's Avatar
  • Offline
  • Junior
  • Posts: 236
Markdown does transform this text starting with 1. to a sorted list (html). I would suggest you to use an additional header/text before '1. aaa'. Than it works (better).
Martin - ffp.bauschaffen.de
Last Edit: 2 years 10 months ago by mp.
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #4

  • markus
  • markus's Avatar
  • Offline
  • Junior
  • Posts: 118
Greg, Martin: Thanks for your answers.
I'll use some text before (I had comments like "1. Ehefrau" and "2. Ehefrau" which both rendered to meaningless "Ehefrau" ;)
Best regards /Markus
webtrees 1.7.9 + latest updates + several addons
The administrator has disabled public write access.

[SOLVED] NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #5

  • markus
  • markus's Avatar
  • Offline
  • Junior
  • Posts: 118
Problem solved.
Best regards /Markus
webtrees 1.7.9 + latest updates + several addons
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #6

  • markus
  • markus's Avatar
  • Offline
  • Junior
  • Posts: 118
@Greg: As you plan to cancel support for pre-PHP 5.6 you might be able change the rendering library as commented in issue #479.
Best regards /Markus
webtrees 1.7.9 + latest updates + several addons
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11741
The problem is that the old markdown library supports tables.

The official markdown specification does not. See spec.commonmark.org

There are very good libraries that follow the specification exactly. e.g. commonmark.thephpleague.com

We can either use a modern library that follows the specification (but does not support tables), or we can have an old/buggy library that does.

The census assistant module uses markdown tables. Removing support for them would be very unpopular.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11741
Actually, I see that the phpleague library supports plugins, and there is a tables plugin. I'll need to look at that.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #9

  • mp
  • mp's Avatar
  • Offline
  • Junior
  • Posts: 236
> I had comments like "1. Ehefrau" and "2. Ehefrau"

Ok, I would recommend you to use words only in this case (Erste Ehefrau). Then you can delete any additional text before and the note displays the information in a single row without the plus sign.
Martin - ffp.bauschaffen.de
The administrator has disabled public write access.

NOTE: Some prefix-chars not shown in UI 2 years 10 months ago #10

  • markus
  • markus's Avatar
  • Offline
  • Junior
  • Posts: 118
Thanks Martin. I used "1.Ehefrau" (omitting the space) ... as this person has had 4 wifes and digits are easier to see than word-numbers.
Best regards /Markus
webtrees 1.7.9 + latest updates + several addons
The administrator has disabled public write access.
Powered by Kunena Forum