MacDownApp / MacDownApp/macdown

Start number of numbered lists

Open
#1,049 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement upstream
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

When I paste some texts from one of my plain text file and try to put it in markdown format, the numbered list is not displayed correctly.
Please find my texts below, it is correct here on issue page but it is not displayed correctly in macDown.
macDown version: 0.7.1 (870)
os: macOS Mojave 10.14.2 (18C54)

kKFJYt.md.png
第一课 LED 闪烁

  1. user_init()中创建一个任务:
    xTaskCreate(led_toggle_task, "led_toggle_task", 256, NULL, 1, NULL);

  2. Initialise LED pin: GPIO14
    复制examples/driver_lib/driver/gpio.c 复制到项目的driver文件夹,把examples/driver_lib/include/gpio.h复制到项目的include文件夹
    设置头文件包含 #include "include/gpio.h"

void led_init( void )    
{
	GPIO_ConfigTypeDef  GPIOConfig;

	GPIOConfig.GPIO_Pin = GPIO_Pin_14;
	GPIOConfig.GPIO_Mode = GPIO_Mode_Output;
	GPIOConfig.GPIO_Pullup = GPIO_PullUp_EN;
	GPIOConfig.GPIO_IntrType = GPIO_PIN_INTR_DISABLE;
	gpio_config( &GPIOConfig );	
}
  1. 进行 GPIO toggle
void led_toggle( void )
{
	uint32_t bit;
	
	bit = GPIO_INPUT_GET( 14 );
	
	GPIO_OUTPUT( GPIO_Pin_14 , bit ^ 0x00000001 );
}
  1. 任务调度

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the pasted numbered-list example in MacDown 0.7.1 on macOS Mojave, comparing its rendering with the GitHub issue-page rendering and the linked screenshot. Trace the Markdown rendering path responsible for numbered lists; done means the supplied example displays its list numbering correctly in MacDown.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, markdown
Domain
content, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.