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."
  • Page:
  • 1

TOPIC:

NOTE: Some prefix-chars not shown in UI 3 years 5 months ago #1

  • markus
  • markus's Avatar Topic Author
  • Offline
  • Junior
  • Junior
  • Posts: 119
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

Please Log in or Create an account to join the conversation.

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

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13191
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

Please Log in or Create an account to join the conversation.

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

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

Please Log in or Create an account to join the conversation.

Last edit: by mp.

NOTE: Some prefix-chars not shown in UI 3 years 5 months ago #4

  • markus
  • markus's Avatar Topic Author
  • Offline
  • Junior
  • Junior
  • Posts: 119
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

Please Log in or Create an account to join the conversation.

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

  • markus
  • markus's Avatar Topic Author
  • Offline
  • Junior
  • Junior
  • Posts: 119
Problem solved.
Best regards /Markus
webtrees 1.7.9 + latest updates + several addons

Please Log in or Create an account to join the conversation.

NOTE: Some prefix-chars not shown in UI 3 years 5 months ago #6

  • markus
  • markus's Avatar Topic Author
  • Offline
  • Junior
  • Junior
  • Posts: 119
@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

Please Log in or Create an account to join the conversation.

NOTE: Some prefix-chars not shown in UI 3 years 5 months ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13191
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

Please Log in or Create an account to join the conversation.

NOTE: Some prefix-chars not shown in UI 3 years 5 months ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13191
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

Please Log in or Create an account to join the conversation.

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 3 years 5 months ago #9

> 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

Please Log in or Create an account to join the conversation.

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

  • markus
  • markus's Avatar Topic Author
  • Offline
  • Junior
  • Junior
  • Posts: 119
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum