mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-10 05:49:27 +00:00
[PR #239] [MERGED] Globalization Extension #885
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/239
Author: @mhmd-azeez
Created: 8/25/2018
Status: ✅ Merged
Merged: 8/28/2018
Merged by: @xoofx
Base:
master← Head:master📝 Commits (9)
5aa1384add globalization extensiond05bc15only take strong characters into consideration when deciding whether a block should be rtl or not7292accmake sure TaskList's X doesn't affect whether a block is marked as RTL or notfc5d832Add globalization case for Configure extension method16c0829add globalization spec8767a1dtake surrogate characters into account7d7598dfix copyright noticesa99b7f4update globalization specs, docs and testsdfcd5cdFix the specs to make sure that the requried extensions are added in the tests📊 Changes
7 files changed (+997 additions, -2 deletions)
View changed files
📝
src/Markdig.Tests/Markdig.Tests.csproj(+1 -0)➕
src/Markdig.Tests/Specs/GlobalizationSpecs.md(+189 -0)📝
src/Markdig.Tests/Specs/Specs.cs(+229 -1)📝
src/Markdig.Tests/Specs/Specs.tt(+1 -0)➕
src/Markdig/Extensions/Globalization/GlobalizationExtension.cs(+108 -0)📝
src/Markdig/Helpers/CharHelper.cs(+454 -1)📝
src/Markdig/MarkdownExtensions.cs(+15 -0)📄 Description
Closes #238
This extension adds dir="rtl" attribute to elements that start with RTL characters, RTL characters are specified by section D of RFC3454.
The main work on the extension done, what remains is for me to test it a bit more, possibly make it more efficient and less verbose and write a couple of unit tests and documentation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.